1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 15:43:13 +02:00

Add logging to several operserv commands

This commit is contained in:
Adam
2013-08-25 00:14:17 -04:00
parent 446b3a910d
commit 00a19529c3
7 changed files with 30 additions and 0 deletions
+3
View File
@@ -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();