mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Don't tell user about /cmdlist
in rcon when using an unknown command.
This commit is contained in:
parent
8d2de4b8c2
commit
19796cdce4
|
@ -547,7 +547,10 @@ void CConsole::ExecuteLineStroked(int Stroke, const char *pStr, int ClientID, bo
|
|||
if(!m_pfnUnknownCommandCallback(pStr, m_pUnknownCommandUserdata))
|
||||
{
|
||||
char aBuf[CMDLINE_LENGTH + 32];
|
||||
str_format(aBuf, sizeof(aBuf), "No such command: %s. Use /cmdlist for a list of all commands.", Result.m_pCommand);
|
||||
if(m_FlagMask & CFGFLAG_CHAT)
|
||||
str_format(aBuf, sizeof(aBuf), "No such command: %s. Use /cmdlist for a list of all commands.", Result.m_pCommand);
|
||||
else
|
||||
str_format(aBuf, sizeof(aBuf), "No such command: %s.", Result.m_pCommand);
|
||||
Print(OUTPUT_LEVEL_STANDARD, "chatresp", aBuf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue