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.
This commit is contained in:
Sadie Powell 2025-02-27 15:46:28 +00:00
parent 7058e49247
commit f2e8c45dbf
2 changed files with 1 additions and 10 deletions

View File

@ -65,10 +65,5 @@ CmdResult CommandDie::Handle(User* user, const Params& parameters)
DieRestart::SendError(diebuf); DieRestart::SendError(diebuf);
ServerInstance->Exit(EXIT_FAILURE); ServerInstance->Exit(EXIT_FAILURE);
} }
else return CmdResult::FAILURE;
{
ServerInstance->Logs.Critical(MODNAME, "Failed /DIE command from {}", user->GetRealMask());
ServerInstance->SNO.WriteGlobalSno('a', "Failed DIE command from {}.", user->GetRealMask());
return CmdResult::FAILURE;
}
} }

View File

@ -69,9 +69,5 @@ CmdResult CommandRestart::Handle(User* user, const Params& parameters)
ServerInstance->SNO.WriteGlobalSno('a', "Failed RESTART - could not execute '{}' ({})", ServerInstance->SNO.WriteGlobalSno('a', "Failed RESTART - could not execute '{}' ({})",
ServerInstance->Config->CommandLine.argv[0], strerror(errno)); ServerInstance->Config->CommandLine.argv[0], strerror(errno));
} }
else
{
ServerInstance->SNO.WriteGlobalSno('a', "Failed RESTART Command from {}.", user->GetRealMask());
}
return CmdResult::FAILURE; return CmdResult::FAILURE;
} }