mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +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
|
else
|
||||||
{
|
{
|
||||||
if(pCommand->m_Flags & CMDFLAG_TEST && !g_Config.m_SvTestingCommands)
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(m_pfnTeeHistorianCommandCallback && !(pCommand->m_Flags & CFGFLAG_NONTEEHISTORIC))
|
if(m_pfnTeeHistorianCommandCallback && !(pCommand->m_Flags & CFGFLAG_NONTEEHISTORIC))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue