summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/commands/cs_mode.cpp2
-rw-r--r--modules/commands/os_ignore.cpp9
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());