summaryrefslogtreecommitdiff
path: root/modules/operserv/akill.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
committerAdam <Adam@anope.org>2017-02-06 14:23:18 -0500
commit8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch)
treeca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/akill.cpp
parent9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff)
Track override in CommandSource and use it in the logger
Diffstat (limited to 'modules/operserv/akill.cpp')
-rw-r--r--modules/operserv/akill.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/operserv/akill.cpp b/modules/operserv/akill.cpp
index 0af4a36c5..a9d6c4b2f 100644
--- a/modules/operserv/akill.cpp
+++ b/modules/operserv/akill.cpp
@@ -150,7 +150,7 @@ class CommandOSAKill : public Command
if (percent > 95) // XXX make this configurable..
{
source.Reply(_("\002{0}\002 coverage is too wide; Please use a more specific mask."), mask);
- logger.Command(LogType::ADMIN, source, _("{source} used {command} and tried to akill {0}% of the network ({1} users)"),
+ logger.Admin(source, _("{source} used {command} and tried to akill {0}% of the network ({1} users)"),
95, affected);
x->Delete();
return;
@@ -170,7 +170,7 @@ class CommandOSAKill : public Command
source.Reply(_("\002{0}\002 added to the akill list."), mask);
- logger.Command(LogType::ADMIN, source, _("{source} used {command} on {0} ({1}), expires in {2} [affects {3} user(s) ({4}%)]"),
+ logger.Admin(source, _("{source} used {command} on {0} ({1}), expires in {2} [affects {3} user(s) ({4}%)]"),
mask, x->GetReason(), expires ? Anope::Duration(expires - Anope::CurTime) : "never", affected, percent);
if (Anope::ReadOnly)
source.Reply(_("Services are in read-only mode. Any changes made may not persist."));
@@ -204,7 +204,7 @@ class CommandOSAKill : public Command
if (!x)
return;
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to remove {0} from the akill list"), x->GetMask());
+ logger.Admin(source, _("{source} used {command} to remove {0} from the akill list"), x->GetMask());
++deleted;
x->Delete();
@@ -233,7 +233,7 @@ class CommandOSAKill : public Command
{
EventManager::Get()->Dispatch(&Event::DelXLine::OnDelXLine, source, x, akills);
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to remove {0} from the akill list"), x->GetMask());
+ logger.Admin(source, _("{source} used {command} to remove {0} from the akill list"), x->GetMask());
source.Reply(_("\002{0}\002 deleted from the akill list."), x->GetMask());
x->Delete();
@@ -348,7 +348,7 @@ class CommandOSAKill : public Command
x->Delete();
}
- logger.Command(LogType::ADMIN, source, _("{source} used {command} to CLEAR the akill list"));
+ logger.Admin(source, _("{source} used {command} to CLEAR the akill list"));
source.Reply(_("The akill list has been cleared."));