diff options
author | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
commit | 16ca76c2e7ab287e480185fbb03a0bb438351eda (patch) | |
tree | dfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/operserv/shutdown.cpp | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (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.cpp | 4 |
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> ¶ms) 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> ¶ms) 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; } |