ngircd

Free, portable and lightweight Internet Relay Chat server http://ngircd.barton.de/
Log | Files | Refs | README | LICENSE

commit d90f0323e5c2574f10b0445901f731c4c892b6ac
parent 01e590b007aaf36b8f6ac201b9ca4a7904800e00
Author: Alexander Barton <alex@barton.de>
Date:   Wed, 30 Dec 2015 14:51:48 +0100

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!

Diffstat:
Msrc/ngircd/irc-server.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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!",