From 84a0f5d036141c06a7616746d6bbcac77890c335 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 15 Jun 2008 09:24:02 -0400 Subject: [PATCH] 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. --- src/opserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.20.1