Implement JOIN 0 (equivalent to PARTing all channels)
This commit is contained in:
parent
9543e78c5c
commit
2561145d05
|
@ -395,6 +395,15 @@ class Connection
|
|||
return;
|
||||
}
|
||||
|
||||
if (message.parameters[0] == "0")
|
||||
{
|
||||
foreach (channel; channels)
|
||||
{
|
||||
channel.part(this, null);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
auto channelList = message.parameters[0].split(',');
|
||||
auto channelKeys = message.parameters.length > 1 ? message.parameters[1].split(',') : null;
|
||||
foreach (i, channelName; channelList)
|
||||
|
|
Loading…
Reference in New Issue