From: bones_was_here Date: Wed, 23 Apr 2025 19:34:28 +0000 (+1000) Subject: Allow server console to vcall any command X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fbones_was_here%2Frcon_vcall;p=xonotic%2Fxonotic-data.pk3dir.git Allow server console to vcall any command Bypassing sv_vote_commands is occasionally useful or fun. --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index e2df71b7ff..c58e5f48d6 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -751,7 +751,7 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa if (autocvar_sv_vote_limit > 0 && strlen(vote_command) > autocvar_sv_vote_limit) return 0; - if (!VoteCommand_checkinlist(first_command, vote_list)) return 0; + if (caller && !VoteCommand_checkinlist(first_command, vote_list)) return 0; if (!VoteCommand_checkargs(startpos, argc)) return 0;