mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-08 17:19:01 -05:00
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:
parent
7058e49247
commit
f2e8c45dbf
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user