From d62d0031eaefe66eecfc3164916f0d6426c87926 Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 19 Apr 2021 00:38:33 -0400 Subject: [PATCH] Fix deferred vote calls --- qcsrc/server/command/vote.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.2