From: terencehill Date: Fri, 24 May 2013 17:04:05 +0000 (+0200) Subject: Prevent a crash (infinite loop) calling the command vote help help X-Git-Tag: xonotic-v0.7.0~39^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2ba3f708dc61af207a16f00961c2a95364fe4ae2;p=xonotic%2Fxonotic-data.pk3dir.git Prevent a crash (infinite loop) calling the command vote help help --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index dcbf4f32e..1fa1be119 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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) \