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 9f1eafd0c..df2212a21 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -476,7 +476,7 @@ ModResult Channel::GetExtBanStatus(User *user, char type)
return rv;
for (BanList::iterator i = this->bans.begin(); i != this->bans.end(); i++)
{
- if (i->data[0] == type && i->data[1] == ':')
+ if (i->data.length() > 2 && i->data[0] == type && i->data[1] == ':')
{
std::string val = i->data.substr(2);
if (CheckBan(user, val))