]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/gamecommand.qc
Update the "invalid command" print to actually have the command string if it exists.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / gamecommand.qc
index 4e1ca0bfb6b7b0f0d2ccc630e0f14e3c391b5536..35fa70ace8c24d305c9f416e1098d3b75c960f82 100644 (file)
@@ -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