From: Alexander Barton Date: Wed, 30 Dec 2015 13:51:48 +0000 (+0100) Subject: Fix NJOIN handler killing all clients X-Git-Tag: rel-24-rc1~48 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d90f0323e5c2574f10b0445901f731c4c892b6ac;p=ngircd-alex.git Fix NJOIN handler killing all clients This bug has been introduced by commit 1e386fb7ac which had the logic reversed :-( Reported by "ninguno" in #ngircd, thanks a lot! --- diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c index 86d97a2f..317a3e1a 100644 --- a/src/ngircd/irc-server.c +++ b/src/ngircd/irc-server.c @@ -283,7 +283,7 @@ IRC_NJOIN( CLIENT *Client, REQUEST *Req ) goto skip_njoin; } - if (Channel_Join(c, channame)) { + if (!Channel_Join(c, channame)) { /* Failed to join channel. Ooops!? */ Log(LOG_ALERT, "Failed to join client \"%s\" to channel \"%s\" (NJOIN): killing it!",