summaryrefslogtreecommitdiff
path: root/modules/commands/os_shutdown.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-25 00:14:17 -0400
committerAdam <Adam@anope.org>2013-08-25 04:48:43 -0400
commit00a19529c3f310a437a8f8b5bdd758034abb8585 (patch)
tree2c38bab1718ec692251a88f39d514d1a8ef89afa /modules/commands/os_shutdown.cpp
parent446b3a910d457ce32e6accd4ecc47e6e02f66ed4 (diff)
Add logging to several operserv commands
Diffstat (limited to 'modules/commands/os_shutdown.cpp')
-rw-r--r--modules/commands/os_shutdown.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/os_shutdown.cpp b/modules/commands/os_shutdown.cpp
index f4fceada7..c559f0504 100644
--- a/modules/commands/os_shutdown.cpp
+++ b/modules/commands/os_shutdown.cpp
@@ -21,6 +21,7 @@ class CommandOSQuit : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ Log(LOG_ADMIN, source, this);
Anope::QuitReason = source.command + " command received from " + source.GetNick();
Anope::Quitting = true;
return;
@@ -48,6 +49,7 @@ class CommandOSRestart : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ Log(LOG_ADMIN, source, this);
Anope::QuitReason = source.command + " command received from " + source.GetNick();
Anope::Quitting = Anope::Restarting = true;
Anope::SaveDatabases();
@@ -73,6 +75,7 @@ class CommandOSShutdown : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ Log(LOG_ADMIN, source, this);
Anope::QuitReason = source.command + " command received from " + source.GetNick();
Anope::Quitting = true;
Anope::SaveDatabases();