diff options
author | B00mX0r <b00mx0r@aureus.pw> | 2017-11-26 14:14:12 -0800 |
---|---|---|
committer | B00mX0r <b00mx0r@aureus.pw> | 2017-11-26 14:16:29 -0800 |
commit | d2f4558bccf5138ed4c7ee3503412b8157287f78 (patch) | |
tree | 89eaaa833a6f53a72e9ce49530d558fb64a1e1aa | |
parent | fa95bb4b0d5aed9204d469a36946a9839a7ffaa2 (diff) |
Fix action extbans not triggering
This fixes a reversion from ebe5b20
-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; } } |