diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-04 16:17:21 -0400 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-09-04 16:17:21 -0400 |
commit | 33f4713fbdb53a22abec11bf78d192447f66b5e7 (patch) | |
tree | 7a5f75928259f9c37893b7482fc89fe2327b4634 | |
parent | 3c8cda059021ecddb989d5554e0b21cca08056ed (diff) |
Fix crash on matching j:@#chan ban when the user is not in the channel
-rw-r--r-- | src/modules/m_channelban.cpp | 2 |
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 |