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 /modules/commands/os_ignore.cpp | |
parent | 50e1a3e96c95e42d48feb7f5ed80f13c5b5f0e4a (diff) |
Log parameters given to /cs mode set. Add logging to /os ignore.
Diffstat (limited to 'modules/commands/os_ignore.cpp')
-rw-r--r-- | modules/commands/os_ignore.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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()); |