summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorB00mX0r <b00mx0r@aureus.pw>2017-11-26 14:14:12 -0800
committerB00mX0r <b00mx0r@aureus.pw>2017-11-26 14:16:29 -0800
commitd2f4558bccf5138ed4c7ee3503412b8157287f78 (patch)
tree89eaaa833a6f53a72e9ce49530d558fb64a1e1aa /src/channels.cpp
parentfa95bb4b0d5aed9204d469a36946a9839a7ffaa2 (diff)
Fix action extbans not triggering
This fixes a reversion from ebe5b20
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
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;
}
}