diff options
author | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
commit | 8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch) | |
tree | ca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/shutdown.cpp | |
parent | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff) |
Track override in CommandSource and use it in the logger
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 4e0b0a162..42fc10233 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 { - logger.Command(LogType::ADMIN, source, _("{source} used {command}")); + logger.Admin(source, _("{source} used {command}")); Anope::QuitReason = source.GetCommand() + " 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 { - logger.Command(LogType::ADMIN, source, _("{source} used {command}")); + logger.Admin(source, _("{source} used {command}")); Anope::QuitReason = source.GetCommand() + " command received from " + source.GetNick(); Anope::Quitting = true; } |