From: Michael Poole Date: Sun, 15 Jun 2008 13:24:02 +0000 (-0400) Subject: Avoid crashing in opserv_join_check() without an OpServ. X-Git-Tag: v1.4.0-rc3~11 X-Git-Url: http://git.pk910.de/?p=srvx.git;a=commitdiff_plain;h=84a0f5d036141c06a7616746d6bbcac77890c335 Avoid crashing in opserv_join_check() without an OpServ. src/opserv.c (opserv_join_check): Only act on bad channels if we have an OpServ bot. --- diff --git a/src/opserv.c b/src/opserv.c index 689b72a..a661f23 100644 --- a/src/opserv.c +++ b/src/opserv.c @@ -1982,7 +1982,7 @@ opserv_join_check(struct modeNode *mNode) dict_foreach(opserv_channel_alerts, alert_check_user, user); - if (channel->bad_channel) { + if (opserv && channel->bad_channel) { opserv_debug("Found $b%s$b in bad-word channel $b%s$b; removing the user.", user->nick, channel->name); if (channel->name[0] != '#') DelUser(user, opserv, 1, "OSMSG_ILLEGAL_KILL_REASON");