mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04: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);
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user