From: Samual Date: Fri, 11 Nov 2011 04:36:11 +0000 (-0500) Subject: Update the "invalid command" print to actually have the command string if it exists. X-Git-Tag: xonotic-v0.6.0~188^2~28^2~219 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=06e8fba0ce661f447a799b7d0626ed1b5d5e9529;p=xonotic%2Fxonotic-data.pk3dir.git Update the "invalid command" print to actually have the command string if it exists. --- diff --git a/qcsrc/client/gamecommand.qc b/qcsrc/client/gamecommand.qc index f85d946f6..65bf3f63a 100644 --- a/qcsrc/client/gamecommand.qc +++ b/qcsrc/client/gamecommand.qc @@ -334,7 +334,7 @@ void GameCommand(string command) } // nothing above caught the command, must be invalid - print("Invalid command. For a list of supported commands, try cl_cmd help.\n"); + print("Invalid command", (command ? strcat(" '", command, "'") : ""), ". For a list of supported commands, try cl_cmd help.\n"); return; } diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index 4e1ca0bfb..35fa70ace 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -1993,7 +1993,7 @@ void GameCommand(string command) } // nothing above caught the command, must be invalid - print("Invalid command. For a list of supported commands, try sv_cmd help.\n"); + print("Invalid command", (command ? strcat(" '", command, "'") : ""), ". For a list of supported commands, try sv_cmd help.\n"); return; } \ No newline at end of file