diff options
| author | 2025-02-27 15:46:28 +0000 | |
|---|---|---|
| committer | 2025-02-27 15:47:52 +0000 | |
| commit | f2e8c45dbff785751729e559a0015c2931f06e7b (patch) | |
| tree | a3f2102023a709c285e45ba0b0496ce9a12648d6 | |
| parent | Update fmtlib. (diff) | |
Remove log messages about failed DIE and RESTART attempts.
These no longer accept a password so there's no point logging if
a user specifies the wrong server name.
| -rw-r--r-- | src/coremods/core_oper/cmd_die.cpp | 7 | ||||
| -rw-r--r-- | src/coremods/core_oper/cmd_restart.cpp | 4 |
2 files changed, 1 insertions, 10 deletions
diff --git a/src/coremods/core_oper/cmd_die.cpp b/src/coremods/core_oper/cmd_die.cpp index 2bd99d722..052792898 100644 --- a/src/coremods/core_oper/cmd_die.cpp +++ b/src/coremods/core_oper/cmd_die.cpp @@ -65,10 +65,5 @@ CmdResult CommandDie::Handle(User* user, const Params& parameters) DieRestart::SendError(diebuf); ServerInstance->Exit(EXIT_FAILURE); } - else - { - ServerInstance->Logs.Critical(MODNAME, "Failed /DIE command from {}", user->GetRealMask()); - ServerInstance->SNO.WriteGlobalSno('a', "Failed DIE command from {}.", user->GetRealMask()); - return CmdResult::FAILURE; - } + return CmdResult::FAILURE; } diff --git a/src/coremods/core_oper/cmd_restart.cpp b/src/coremods/core_oper/cmd_restart.cpp index f5506edb3..8f988fa4e 100644 --- a/src/coremods/core_oper/cmd_restart.cpp +++ b/src/coremods/core_oper/cmd_restart.cpp @@ -69,9 +69,5 @@ CmdResult CommandRestart::Handle(User* user, const Params& parameters) ServerInstance->SNO.WriteGlobalSno('a', "Failed RESTART - could not execute '{}' ({})", ServerInstance->Config->CommandLine.argv[0], strerror(errno)); } - else - { - ServerInstance->SNO.WriteGlobalSno('a', "Failed RESTART Command from {}.", user->GetRealMask()); - } return CmdResult::FAILURE; } |
