From d2f4558bccf5138ed4c7ee3503412b8157287f78 Mon Sep 17 00:00:00 2001 From: B00mX0r Date: Sun, 26 Nov 2017 14:14:12 -0800 Subject: Fix action extbans not triggering This fixes a reversion from ebe5b20 --- src/channels.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/channels.cpp') 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; } } -- cgit v1.2.3