summaryrefslogtreecommitdiff
path: root/src/modules/m_banexception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r--src/modules/m_banexception.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_banexception.cpp b/src/modules/m_banexception.cpp
index b29b39747..4bfd19373 100644
--- a/src/modules/m_banexception.cpp
+++ b/src/modules/m_banexception.cpp
@@ -64,7 +64,7 @@ class ModuleBanException : public Module
for (ListModeBase::ModeList::iterator it = list->begin(); it != list->end(); it++)
{
- if (it->mask[0] != type || it->mask[1] != ':')
+ if (it->mask.length() <= 2 || it->mask[0] != type || it->mask[1] != ':')
continue;
if (chan->CheckBan(user, it->mask.substr(2)))