From: z411 Date: Mon, 19 Apr 2021 04:38:33 +0000 (-0400) Subject: Fix deferred vote calls X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d62d0031eaefe66eecfc3164916f0d6426c87926;p=xonotic%2Fxonotic-data.pk3dir.git Fix deferred vote calls --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 3c01e87c7..032f871df 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -726,7 +726,7 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa if (first_command == "kickban") command_arguments = strcat(ftos(autocvar_g_ban_default_bantime), " ", ftos(autocvar_g_ban_default_masksize), " ~"); - vote_parsed_command = strcat("defer 2 ", first_command, " # ", ftos(etof(victim)), " ", command_arguments); + vote_parsed_command = strcat("defer 2 \"", first_command, " # ", ftos(etof(victim)), " ", command_arguments, "\""); vote_parsed_display = sprintf("^1%s #%d ^7%s^1 %s", first_command, etof(victim), victim.netname, reason); } else { print_to(caller, strcat("vcall: ", GetClientErrorString(accepted, argv(startpos + 1)), ".\n")); return 0; } @@ -740,8 +740,8 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa { vote_command = ValidateMap(argv(startpos + 1), caller); if (!vote_command) return -1; - vote_parsed_command = strcat("defer 2 gotomap ", vote_command); - vote_parsed_display = strzone(strcat("^1", vote_parsed_command)); + vote_parsed_command = strcat("defer 2 \"gotomap ", vote_command, "\""); + vote_parsed_display = strzone(strcat("^1gotomap ", vote_command)); break; }