From a9df61e1dd244e7e23b84ee3deab133d081c896e Mon Sep 17 00:00:00 2001 From: furo Date: Wed, 31 Jan 2024 00:27:38 +0100 Subject: [PATCH] Tell the user about `/cmdlist` when using an unknown chat command. --- src/engine/shared/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/shared/console.cpp b/src/engine/shared/console.cpp index ba2ddc0bc..ebace1d1f 100644 --- a/src/engine/shared/console.cpp +++ b/src/engine/shared/console.cpp @@ -547,7 +547,7 @@ 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.", Result.m_pCommand); + str_format(aBuf, sizeof(aBuf), "No such command: %s. Use /cmdlist for a list of all commands.", Result.m_pCommand); Print(OUTPUT_LEVEL_STANDARD, "chatresp", aBuf); } }