From: Mircea Kitsune Date: Tue, 25 Oct 2011 11:53:24 +0000 (+0300) Subject: Add a message for invalid commands X-Git-Tag: xonotic-v0.6.0~35^2~18^2~179 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=08c71a3e55db235ce99d5a884e178e7439e6e8de;p=xonotic%2Fxonotic-data.pk3dir.git Add a message for invalid commands --- diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 4d2b96115..ca1d96029 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -42,7 +42,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) { if(cmd_argc < 2) { - print_to(self, "Sandbox mode is active. For more information, use 'sandbox help'"); + print_to(self, "Sandbox mode is active. For usage information, type 'sandbox help'"); return TRUE; } @@ -167,6 +167,11 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) return TRUE; } + else + { + print_to(self, "Invalid command. For usage information, type 'sandbox help'"); + return TRUE; + } } return FALSE; }