From 33f4713fbdb53a22abec11bf78d192447f66b5e7 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sat, 4 Sep 2010 16:17:21 -0400 Subject: Fix crash on matching j:@#chan ban when the user is not in the channel --- src/modules/m_channelban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_channelban.cpp b/src/modules/m_channelban.cpp index 85f3fff7d..6696e7238 100644 --- a/src/modules/m_channelban.cpp +++ b/src/modules/m_channelban.cpp @@ -52,7 +52,7 @@ class ModuleBadChannelExtban : public Module if (status) { Membership* memb = c->GetUser(user); - if (memb->hasMode(status)) + if (memb && memb->hasMode(status)) return MOD_RES_DENY; } else -- cgit v1.2.3