From 06e8fba0ce661f447a799b7d0626ed1b5d5e9529 Mon Sep 17 00:00:00 2001 From: Samual Date: Thu, 10 Nov 2011 23:36:11 -0500 Subject: [PATCH] Update the "invalid command" print to actually have the command string if it exists. --- qcsrc/client/gamecommand.qc | 2 +- qcsrc/server/gamecommand.qc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2