diff options
author | Robby <robby@chat.be> | 2012-01-07 04:10:30 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-01-07 04:10:30 -0500 |
commit | 9e713941277e8d745b1713a6500349a9d1ecb8e3 (patch) | |
tree | 8f6d8a8553316799154884f61573036c97ca0fff /modules/commands/cs_clearusers.cpp | |
parent | dd64eac782b3ee5acc6d1068a0ef42142a035254 (diff) |
Cleaned up a lot of log messages, help replies, fixed cs_tban, and other small fixes
Diffstat (limited to 'modules/commands/cs_clearusers.cpp')
-rw-r--r-- | modules/commands/cs_clearusers.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/commands/cs_clearusers.cpp b/modules/commands/cs_clearusers.cpp index 59f7a71ab..e65aa34eb 100644 --- a/modules/commands/cs_clearusers.cpp +++ b/modules/commands/cs_clearusers.cpp @@ -40,7 +40,7 @@ class CommandCSClearUsers : public Command source.Reply(CHAN_X_NOT_REGISTERED, c->name.c_str()); return; } - else if (!c->ci->AccessFor(u).HasPriv("FOUNDER")) + else if (!c->ci->AccessFor(u).HasPriv("FOUNDER") && !u->HasCommand("chanserv/clearusers")) { source.Reply(ACCESS_DENIED); return; @@ -55,7 +55,10 @@ class CommandCSClearUsers : public Command c->Kick(NULL, uc->user, "%s", buf.c_str()); } - source.Reply(_("All users have been kicked from \2%s\2."), chan.c_str()); + bool override = !c->ci->AccessFor(u).HasPriv("FOUNDER"); + Log(override ? LOG_OVERRIDE : LOG_COMMAND, u, this, c->ci); + + source.Reply(_("All users have been kicked from \002%s\002."), chan.c_str()); return; } @@ -64,7 +67,7 @@ class CommandCSClearUsers : public Command { this->SendSyntax(source); source.Reply(" "); - source.Reply(_("Tells %s to clear (kick) all users certain settings on a channel." + source.Reply(_("Tells %s to clear (kick) all users on a channel." " \n" "By default, limited to those with founder access on the\n" "channel."), source.owner->nick.c_str()); |