mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user