mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Merge pull request #7869 from furo321/testcmds-error
Add a error message for when testing commands aren't allowed
This commit is contained in:
commit
dcdc66d1df
|
@ -502,7 +502,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo
|
|||
else
|
||||
{
|
||||
if(pCommand->m_Flags & CMDFLAG_TEST && !g_Config.m_SvTestingCommands)
|
||||
{
|
||||
Print(OUTPUT_LEVEL_STANDARD, "console", "Test commands aren't allowed, enable them with 'sv_test_cmds 1' in your initial config.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(m_pfnTeeHistorianCommandCallback && !(pCommand->m_Flags & CFGFLAG_NONTEEHISTORIC))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue