summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp2
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)))