]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Prevent a crash (infinite loop) calling the command vote help help
authorterencehill <piuntn@gmail.com>
Fri, 24 May 2013 17:04:05 +0000 (19:04 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 24 May 2013 17:04:05 +0000 (19:04 +0200)
qcsrc/server/command/vote.qc

index dcbf4f32e2bc5d26bbb790ca32820b835030a2ae..1fa1be119a44c5a9250e0baf35ab7000657dd67d 100644 (file)
@@ -1067,8 +1067,8 @@ void VoteCommand_(float request)
 void VoteCommand_macro_help(entity caller, float argc)
 {
        string command_origin = GetCommandPrefix(caller);
-       
-       if(argc == 2) // help display listing all commands
+
+       if(argc == 2 || argv(2) == "help") // help display listing all commands
        {
                print_to(caller, "\nVoting commands:\n");
                #define VOTE_COMMAND(name,function,description,assignment) \