diff options
| author | 2017-12-11 11:41:44 +0000 | |
|---|---|---|
| committer | 2017-12-11 11:41:44 +0000 | |
| commit | 565544fac966b14e046bb3042ab485f79bcf7c9e (patch) | |
| tree | feb6dc47d7a901f3f30413340e176281fd01ba98 /src/channels.cpp | |
| parent | Merge pull request #1423 from B00mX0r/master+override_umode (diff) | |
| parent | Add length checking to GetExtBanStatus and m_banexception. (diff) | |
Merge branch 'insp20' into master.
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 3bc58505c..7e6555ae8 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -408,7 +408,7 @@ ModResult Channel::GetExtBanStatus(User *user, char type) { for (ListModeBase::ModeList::const_iterator it = bans->begin(); it != bans->end(); ++it) { - if (it->mask[0] != type || it->mask[1] != ':') + if (it->mask.length() <= 2 || it->mask[0] != type || it->mask[1] != ':') continue; if (CheckBan(user, it->mask.substr(2))) |
