summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-09-04 16:17:21 -0400
committerDaniel De Graaf <danieldg@inspircd.org>2010-09-04 16:17:21 -0400
commit33f4713fbdb53a22abec11bf78d192447f66b5e7 (patch)
tree7a5f75928259f9c37893b7482fc89fe2327b4634 /src
parent3c8cda059021ecddb989d5554e0b21cca08056ed (diff)
Fix crash on matching j:@#chan ban when the user is not in the channel
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_channelban.cpp2
1 files changed, 1 insertions, 1 deletions
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