summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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