commit - 52ccba5d1e8cd2e648cf3c14598332bde6b9910d
commit + 1e386fb7acdf6754a9ee4e6ddc8fa7180f6e5c1e
blob - 6ca3c33288ebfd595084cf77a28863974957abbc
blob + 86d97a2f74ca8abdd52945f34fb7c2b46804a58b
--- src/ngircd/irc-server.c
+++ src/ngircd/irc-server.c
#include "parse.h"
#include "numeric.h"
#include "ngircd.h"
+#include "irc.h"
#include "irc-info.h"
#include "irc-write.h"
#include "op.h"
goto skip_njoin;
}
- 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!",
+ ptr, channame);
+ IRC_KillClient(NULL, NULL, ptr, "Internal NJOIN error!");
+ Log(LOG_DEBUG, "... done.");
+ goto skip_njoin;
+ }
+
chan = Channel_Search(channame);
assert(chan != NULL);