From 2ba3f708dc61af207a16f00961c2a95364fe4ae2 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 24 May 2013 19:04:05 +0200 Subject: [PATCH] Prevent a crash (infinite loop) calling the command vote help help --- qcsrc/server/command/vote.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) \ -- 2.39.2