1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 22:06:37 +02:00

Log parameters given to /cs mode set. Add logging to /os ignore.

This commit is contained in:
Adam
2013-08-26 02:05:00 -04:00
parent 50e1a3e96c
commit 7f890ce98d
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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)
+9
View File
@@ -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());