From 5aac6377c2c5795455d41ceea82a5b080a269e04 Mon Sep 17 00:00:00 2001 From: Robby- Date: Fri, 13 Sep 2013 05:58:59 +0200 Subject: Correctly detect override in cs_ban on masks --- modules/commands/cs_ban.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_ban.cpp') diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp index fbd9833a5..8d1c05336 100644 --- a/modules/commands/cs_ban.cpp +++ b/modules/commands/cs_ban.cpp @@ -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;) { -- cgit