diff options
author | Peter Powell <petpow@saberuk.com> | 2017-12-11 11:41:44 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2017-12-11 11:41:44 +0000 |
commit | 565544fac966b14e046bb3042ab485f79bcf7c9e (patch) | |
tree | feb6dc47d7a901f3f30413340e176281fd01ba98 /src/modules/m_banexception.cpp | |
parent | eba2c5ffd3bdea18cc83df12512aba33b5a734a7 (diff) | |
parent | 25c1319e0d16f4cea707a3b7968b70530a5a333f (diff) |
Merge branch 'insp20' into master.
Diffstat (limited to 'src/modules/m_banexception.cpp')
-rw-r--r-- | src/modules/m_banexception.cpp | 2 |
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))) |