diff options
author | Peter Powell <petpow@saberuk.com> | 2017-11-27 14:02:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 14:02:44 +0000 |
commit | 5f6125eb9f55aded7de223073c74529851b8615e (patch) | |
tree | 89eaaa833a6f53a72e9ce49530d558fb64a1e1aa | |
parent | fa95bb4b0d5aed9204d469a36946a9839a7ffaa2 (diff) | |
parent | d2f4558bccf5138ed4c7ee3503412b8157287f78 (diff) |
Merge pull request #1421 from B00mX0r/master+fix_extbans
Fix action extbans not triggering (resolves #1420)
-rw-r--r-- | src/channels.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 1151fe0a5..118a413a8 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -402,7 +402,10 @@ ModResult Channel::GetExtBanStatus(User *user, char type) { for (ListModeBase::ModeList::const_iterator it = bans->begin(); it != bans->end(); ++it) { - if (CheckBan(user, it->mask)) + if (it->mask[0] != type || it->mask[1] != ':') + continue; + + if (CheckBan(user, it->mask.substr(2))) return MOD_RES_DENY; } } |