diff options
| author | 2010-09-04 16:17:21 -0400 | |
|---|---|---|
| committer | 2010-09-04 16:17:21 -0400 | |
| commit | 33f4713fbdb53a22abec11bf78d192447f66b5e7 (patch) | |
| tree | 7a5f75928259f9c37893b7482fc89fe2327b4634 | |
| parent | Fix resolved hostname not being changed when WEBIRC passes a hostname longer ... (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 |
