]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Prevent a crash (infinite loop) calling the command vote help help
[xonotic/xonotic-data.pk3dir.git] / 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) \