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_ajoin.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_ajoin.cpp')
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index 85c15c236..f4f2670f2 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -92,6 +92,8 @@ class CommandNSAJoin : public Command { AJoinList *channels = nc->Require<AJoinList>("ajoinlist"); + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to view the auto join list for " << nc->display; + if ((*channels)->empty()) source.Reply(_("%s's auto join list is empty."), nc->display.c_str()); else @@ -140,6 +142,7 @@ class CommandNSAJoin : public Command entry->channel = chan; entry->key = key; (*channels)->push_back(entry); + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to ADD channel " << chan << " to " << nc->display; source.Reply(_("%s added to %s's auto join list."), chan.c_str(), nc->display.c_str()); } } @@ -158,6 +161,7 @@ class CommandNSAJoin : public Command else { delete (*channels)->at(i); + Log(nc == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to DELETE channel " << chan << " from " << nc->display; source.Reply(_("%s was removed from %s's auto join list."), chan.c_str(), nc->display.c_str()); } |