diff options
author | Robby- <robby@chat.be> | 2013-09-13 05:58:59 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 17:21:31 -0400 |
commit | 5aac6377c2c5795455d41ceea82a5b080a269e04 (patch) | |
tree | 1c72c59619ff1542d3c5aa9ec506bdf9b8c25cb1 /modules/commands/cs_ban.cpp | |
parent | 20856fb59c8a474b381db4a1dd414113dc1e4a19 (diff) |
Correctly detect override in cs_ban on masks
Diffstat (limited to 'modules/commands/cs_ban.cpp')
-rw-r--r-- | modules/commands/cs_ban.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;) { |