Commit Diff
Diff:
01e590b007aaf36b8f6ac201b9ca4a7904800e00
d90f0323e5c2574f10b0445901f731c4c892b6ac
Commit:
d90f0323e5c2574f10b0445901f731c4c892b6ac
Tree:
b5c5e3952e63c866ed9294f7b66e46b537d6576a
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Wed Dec 30 13:55:55 2015 UTC
Message:
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!
blob - 86d97a2f74ca8abdd52945f34fb7c2b46804a58b
blob + 317a3e1a1bf99c8379cb20e83419684024c262af
--- src/ngircd/irc-server.c
+++ 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!",
IRCNow