]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a message for invalid commands
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 11:53:24 +0000 (14:53 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 25 Oct 2011 11:53:24 +0000 (14:53 +0300)
qcsrc/server/mutators/sandbox.qc

index 4d2b961153961ddeb8c2b98a16124fc9812e8ad2..ca1d96029c2f9b2a1ec8370ce20ef3c7c9f40246 100644 (file)
@@ -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;
 }