1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 22:33:12 +02:00

Add more logging to bs_set, cs_set, and ns_set

This commit is contained in:
Adam
2013-04-06 16:43:56 -05:00
parent f77eb0a282
commit 7a2e6aa5c2
3 changed files with 65 additions and 24 deletions
+6 -4
View File
@@ -105,6 +105,10 @@ class CommandBSSetBanExpire : public Command
}
ci->banexpire = Anope::DoTime(arg);
bool override = !access.HasPriv("SET");
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to change banexpire to " << ci->banexpire;
if (!ci->banexpire)
source.Reply(_("Bot bans will no longer automatically expire."));
else
@@ -404,8 +408,7 @@ class CommandBSSetNoBot : public Command
if (value.equals_ci("ON"))
{
bool override = !source.AccessFor(ci).HasPriv("SET");
Log(override ? LOG_ADMIN : LOG_COMMAND, source, this, ci) << "to enable nobot";
Log(LOG_ADMIN, source, this, ci) << "to enable nobot";
ci->ExtendMetadata("BS_NOBOT");
if (ci->bi)
@@ -414,8 +417,7 @@ class CommandBSSetNoBot : public Command
}
else if (value.equals_ci("OFF"))
{
bool override = !source.AccessFor(ci).HasPriv("SET");
Log(override ? LOG_ADMIN : LOG_COMMAND, source, this, ci) << "to disable nobot";
Log(LOG_ADMIN, source, this, ci) << "to disable nobot";
ci->Shrink("BS_NOBOT");
source.Reply(_("No-bot mode is now \002off\002 on channel %s."), ci->name.c_str());