diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-09-12 17:26:05 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-09-12 17:26:05 +0200 |
commit | 55fa754510a00ea6691b9448389b006136d9e628 (patch) | |
tree | 0bf2e5c1407d4f7aca7a1106c2d3ffa1bac5742e /src/coremods | |
parent | 94fdc065f0039c55ee7eded7f2024ad012ce40bd (diff) |
Change type of log messages to MODNAME in several modules
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_oper/cmd_die.cpp | 4 | ||||
-rw-r--r-- | src/coremods/core_oper/cmd_restart.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_oper/cmd_die.cpp b/src/coremods/core_oper/cmd_die.cpp index ff9318de1..5fe643520 100644 --- a/src/coremods/core_oper/cmd_die.cpp +++ b/src/coremods/core_oper/cmd_die.cpp @@ -64,7 +64,7 @@ CmdResult CommandDie::Handle (const std::vector<std::string>& parameters, User * { { std::string diebuf = "*** DIE command from " + user->GetFullHost() + ". Terminating."; - ServerInstance->Logs->Log("COMMAND", LOG_SPARSE, diebuf); + ServerInstance->Logs->Log(MODNAME, LOG_SPARSE, diebuf); DieRestart::SendError(diebuf); } @@ -73,7 +73,7 @@ CmdResult CommandDie::Handle (const std::vector<std::string>& parameters, User * } else { - ServerInstance->Logs->Log("COMMAND", LOG_SPARSE, "Failed /DIE command from %s", user->GetFullRealHost().c_str()); + ServerInstance->Logs->Log(MODNAME, LOG_SPARSE, "Failed /DIE command from %s", user->GetFullRealHost().c_str()); ServerInstance->SNO->WriteGlobalSno('a', "Failed DIE Command from %s.", user->GetFullRealHost().c_str()); return CMD_FAILURE; } diff --git a/src/coremods/core_oper/cmd_restart.cpp b/src/coremods/core_oper/cmd_restart.cpp index 836708626..f76fd098d 100644 --- a/src/coremods/core_oper/cmd_restart.cpp +++ b/src/coremods/core_oper/cmd_restart.cpp @@ -30,7 +30,7 @@ CommandRestart::CommandRestart(Module* parent) CmdResult CommandRestart::Handle (const std::vector<std::string>& parameters, User *user) { - ServerInstance->Logs->Log("COMMAND", LOG_DEFAULT, "Restart: %s",user->nick.c_str()); + ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "Restart: %s", user->nick.c_str()); if (DieRestart::CheckPass(user, parameters[0], "restartpass")) { ServerInstance->SNO->WriteGlobalSno('a', "RESTART command from %s, restarting server.", user->GetFullRealHost().c_str()); |