From 2561145d0571e0419ed689de0dfd1b7b76e20271 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Wed, 12 Feb 2020 15:23:31 +0100 Subject: [PATCH] Implement JOIN 0 (equivalent to PARTing all channels) --- source/ircd/connection.d | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/ircd/connection.d b/source/ircd/connection.d index d805b10..3687b34 100644 --- a/source/ircd/connection.d +++ b/source/ircd/connection.d @@ -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)