]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow master to actually do normal vote commands too (should've been like this before...
authorSamual <samual@xonotic.org>
Thu, 5 Jan 2012 19:51:25 +0000 (14:51 -0500)
committerSamual <samual@xonotic.org>
Thu, 5 Jan 2012 19:51:25 +0000 (14:51 -0500)
commands.cfg
qcsrc/server/command/vote.qc

index 16ecbfb93e13a312f5b2725d6655c2e983cd21e3..21f2da6e377768830b2ad086ad9eda371ba6abf0 100644 (file)
@@ -243,7 +243,7 @@ set sv_vote_call 1 "Allow users to call a vote for the commands in sv_vote_comma
 set sv_vote_change 1 "Allow voters to change their mind after already voting"
 set sv_vote_commands "restart fraglimit chmap gotomap nextmap endmatch reducematchtime extendmatchtime allready kick cointoss movetoauto" "these commands can be voted"
 set sv_vote_only_commands ""
-set sv_vote_master_commands "movetored movetoblue movetoyellow movetopink" "Commands which vote masters can execute by themselves" // maybe add kickban here (but then sv_vote_master 0)
+set sv_vote_master_commands "movetored movetoblue movetoyellow movetopink" "Extra commands which vote masters can execute by themselves, along with the normal sv_vote_commands." // maybe add kickban here (but then sv_vote_master 0)
 set sv_vote_master 1   "Allows the use of the vote master system"
 set sv_vote_master_callable 1 "When set, users can use \"vmaster\" to call a vote to become master of voting commands"
 set sv_vote_master_password "" "when set, users can use \"vlogin PASSWORD\" to log in as master"
index f3e846110f19c297b0ed0bb9faa5f5e2ccf0ace5..8769629f96613bf13247f954617b6535e536f55d 100644 (file)
@@ -696,7 +696,7 @@ void VoteCommand_master(float request, entity caller, float argc, string vote_co
                                                
                                                if not(caller.vote_master) { print_to(caller, "^1You do not have vote master privelages."); }
                                                else if not(VoteCommand_checknasty(vote_command)) { print_to(caller, "^1Syntax error in command, see 'vhelp' for more info."); }
-                                               else if not(VoteCommand_parse(caller, vote_command, autocvar_sv_vote_master_commands, 3, argc)) { print_to(caller, "^1This command is not acceptable, see 'vhelp' for more info."); }
+                                               else if not(VoteCommand_parse(caller, vote_command, strcat(autocvar_sv_vote_commands, " ", autocvar_sv_vote_master_commands), 3, argc)) { print_to(caller, "^1This command is not acceptable, see 'vhelp' for more info."); }
                                                
                                                else // everything went okay, proceed with command
                                                {