From f2e8c45dbff785751729e559a0015c2931f06e7b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 27 Feb 2025 15:46:28 +0000 Subject: [PATCH] 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. --- src/coremods/core_oper/cmd_die.cpp | 7 +------ src/coremods/core_oper/cmd_restart.cpp | 4 ---- 2 files changed, 1 insertion(+), 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; }