diff options
Diffstat (limited to 'src/modules/m_channelban.cpp')
-rw-r--r-- | src/modules/m_channelban.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_channelban.cpp b/src/modules/m_channelban.cpp index 655ed82cd..8c5962f2a 100644 --- a/src/modules/m_channelban.cpp +++ b/src/modules/m_channelban.cpp @@ -42,7 +42,7 @@ class ModuleBadChannelExtban : public Module ModResult OnCheckBan(User *user, Channel *c, const std::string& mask) { - if (mask[0] == 'j' && mask[1] == ':') + if ((mask.length() > 2) && (mask[0] == 'j') && (mask[1] == ':')) { std::string rm = mask.substr(2); char status = 0; |