mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:28:12 +00:00
IRCClient: Implement the "part from channel" action.
Also make sure the action is disabled while we're not in a window that corresponds to an open channel. :^) Fixes #277.
This commit is contained in:
parent
d47432487d
commit
ea9340aeca
5 changed files with 32 additions and 2 deletions
|
@ -78,6 +78,7 @@ void IRCChannel::handle_part(const String& nick, const String& hostmask)
|
|||
if (nick == m_client.nickname()) {
|
||||
m_open = false;
|
||||
m_members.clear();
|
||||
m_client.did_part_from_channel({}, *this);
|
||||
} else {
|
||||
remove_member(nick);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue