diff options
author | Robby- <robby@chat.be> | 2013-09-29 08:55:32 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-29 15:42:22 -0400 |
commit | ed06609ae1b100997981a3c91bcf46d7a31bc7bd (patch) | |
tree | 183d41ecc968d0385d3f01b61fc67c5aa492f36a /modules/commands/ns_access.cpp | |
parent | 32a57150ecddc75b1bfd2efc185575b76431cbff (diff) |
NickServ: Change a few log wordings and add missing log calls to some commands.
ns_suspend and cs_suspend: Fix log wording, and correct syntax to show the reason is optional.
Diffstat (limited to 'modules/commands/ns_access.cpp')
-rw-r--r-- | modules/commands/ns_access.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/commands/ns_access.cpp b/modules/commands/ns_access.cpp index 2d18678bd..5adf17120 100644 --- a/modules/commands/ns_access.cpp +++ b/modules/commands/ns_access.cpp @@ -41,6 +41,7 @@ class CommandNSAccess : public Command } nc->AddAccess(mask); + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to ADD mask " << mask << " to " << nc->display; source.Reply(_("\002%s\002 added to %s's access list."), mask.c_str(), nc->display.c_str()); return; @@ -66,8 +67,9 @@ class CommandNSAccess : public Command return; } - source.Reply(_("\002%s\002 deleted from %s's access list."), mask.c_str(), nc->display.c_str()); nc->EraseAccess(mask); + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to DELETE mask " << mask << " from " << nc->display; + source.Reply(_("\002%s\002 deleted from %s's access list."), mask.c_str(), nc->display.c_str()); return; } @@ -76,6 +78,8 @@ class CommandNSAccess : public Command { unsigned i, end; + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to view the access list for " << nc->display; + if (nc->access.empty()) { source.Reply(_("%s's access list is empty."), nc->display.c_str()); |