summaryrefslogtreecommitdiff
path: root/modules/operserv/shutdown.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
committerAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
commit16ca76c2e7ab287e480185fbb03a0bb438351eda (patch)
treedfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/operserv/shutdown.cpp
parentff030c1eb7c3764f9add2a689479e84d616cabcb (diff)
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/operserv/shutdown.cpp')
-rw-r--r--modules/operserv/shutdown.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/shutdown.cpp b/modules/operserv/shutdown.cpp
index 030eb73f4..de987537f 100644
--- a/modules/operserv/shutdown.cpp
+++ b/modules/operserv/shutdown.cpp
@@ -29,7 +29,7 @@ class CommandOSRestart : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
- Log(LOG_ADMIN, source, this);
+ logger.Command(LogType::ADMIN, source, _("{source} used {command}"));
Anope::QuitReason = source.command + " command received from " + source.GetNick();
Anope::Quitting = Anope::Restarting = true;
}
@@ -51,7 +51,7 @@ class CommandOSShutdown : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override
{
- Log(LOG_ADMIN, source, this);
+ logger.Command(LogType::ADMIN, source, _("{source} used {command}"));
Anope::QuitReason = source.command + " command received from " + source.GetNick();
Anope::Quitting = true;
}