From: terencehill Date: Mon, 18 Sep 2017 18:27:03 +0000 (+0200) Subject: Change output of a successful kick vote to not include reason twice and to always... X-Git-Tag: xonotic-v0.8.5~2465 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=32ce38c49272ae12b332cd64ea1338916a262528;p=xonotic%2Fxonotic-data.pk3dir.git Change output of a successful kick vote to not include reason twice and to always include player entity number --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 986ca2b6c..cd168c834 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -678,7 +678,7 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa command_arguments = strcat(ftos(autocvar_g_ban_default_bantime), " ", ftos(autocvar_g_ban_default_masksize), " ~"); vote_parsed_command = strcat(first_command, " # ", ftos(etof(victim)), " ", command_arguments); - vote_parsed_display = strcat("^1", vote_command, " (^7", victim.netname, "^1): ", reason); + 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; }