Skip to content

Commit

Permalink
Fix NJOIN handler killing all clients
Browse files Browse the repository at this point in the history
This bug has been introduced by commit 1e386fb which had
the logic reversed :-(

Reported by "ninguno" in #ngircd, thanks a lot!
  • Loading branch information
alexbarton committed Dec 30, 2015
1 parent 01e590b commit d90f032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngircd/irc-server.c
Expand Up @@ -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!",
Expand Down

0 comments on commit d90f032

Please sign in to comment.