]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow server console to vcall any command bones_was_here/rcon_vcall
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 23 Apr 2025 19:34:28 +0000 (05:34 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Fri, 2 May 2025 09:10:00 +0000 (19:10 +1000)
Bypassing sv_vote_commands is occasionally useful or fun.

qcsrc/server/command/vote.qc

index e2df71b7ffa1eb175104eff3518e1b7422b44e9b..c58e5f48d6a3bd101554cebf5d48efea210a62fc 100644 (file)
@@ -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;