diff options
author | Adam <Adam@anope.org> | 2013-08-26 02:05:00 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-26 02:05:41 -0400 |
commit | 7f890ce98dc2df28e2b7b43ef5bf0f2f27b97f15 (patch) | |
tree | 93800967fb4aefedd0cd6050c65fd82041d949ac | |
parent | 50e1a3e96c95e42d48feb7f5ed80f13c5b5f0e4a (diff) |
Log parameters given to /cs mode set. Add logging to /os ignore.
-rw-r--r-- | modules/commands/cs_mode.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_ignore.cpp | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index bf7817053..0974f18c2 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -454,7 +454,7 @@ class CommandCSMode : public Command Anope::string modes = params[2], param; bool override = !source.AccessFor(ci).HasPriv("MODE") && source.HasPriv("chanserv/administration"); - Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to set " << params[2]; + Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to set " << params[2] << (params.size() > 3 ? " " + params[3] : ""); int adding = -1; for (size_t i = 0; i < modes.length(); ++i) diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 60c1bd8bf..4cdb26a74 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -170,9 +170,15 @@ class CommandOSIgnore : public Command ignore_service->AddIgnore(nick, source.GetNick(), reason, t); if (!t) + { source.Reply(_("\002%s\002 will now permanently be ignored."), nick.c_str()); + Log(LOG_ADMIN, source, this) << "to add a permanent ignore for " << nick; + } else + { source.Reply(_("\002%s\002 will now be ignored for \002%s\002."), nick.c_str(), time.c_str()); + Log(LOG_ADMIN, source, this) << "to add an ignore on " << nick << " for " << time; + } } return; @@ -235,7 +241,10 @@ class CommandOSIgnore : public Command if (nick.empty()) this->OnSyntaxError(source, "DEL"); else if (ignore_service->DelIgnore(nick)) + { + Log(LOG_ADMIN, source, this) << "to remove an ignore on " << nick; source.Reply(_("\002%s\002 will no longer be ignored."), nick.c_str()); + } else source.Reply(_("Nick \002%s\002 not found on ignore list."), nick.c_str()); |