]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Change output of a successful kick vote to not include reason twice and to always...
authorterencehill <piuntn@gmail.com>
Mon, 18 Sep 2017 18:27:03 +0000 (20:27 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 18 Sep 2017 18:27:03 +0000 (20:27 +0200)
qcsrc/server/command/vote.qc

index 986ca2b6c7b66ac24f69c1d1e80b7d6eade3bb81..cd168c834414b707822e1529e118e1f32660729e 100644 (file)
@@ -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; }