1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 12:46:39 +02:00

Correctly detect override in cs_ban on masks

This commit is contained in:
Robby-
2013-09-13 05:58:59 +02:00
committed by Adam
parent 20856fb59c
commit 5aac6377c2
+3 -2
View File
@@ -144,7 +144,9 @@ class CommandCSBan : public Command
}
else
{
Log(LOG_COMMAND, source, this, ci) << "for " << target;
bool founder = u_access.HasPriv("FOUNDER");
bool override = !founder && !u_access.HasPriv("BAN");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "for " << target;
if (!c->HasMode("BAN", target))
{
@@ -156,7 +158,6 @@ class CommandCSBan : public Command
}
}
bool founder = u_access.HasPriv("FOUNDER");
int matched = 0, kicked = 0;
for (Channel::ChanUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end;)
{