1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +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:
Andreas Kling 2019-07-07 21:51:08 +02:00
parent d47432487d
commit ea9340aeca
5 changed files with 32 additions and 2 deletions

View file

@ -647,3 +647,9 @@ void IRCClient::handle_part_action(const String& channel)
{
part_channel(channel);
}
void IRCClient::did_part_from_channel(IRCChannel& channel)
{
if (on_part_from_channel)
on_part_from_channel(channel);
}