From: Samual Lenks Date: Wed, 1 May 2013 18:54:14 +0000 (-0400) Subject: Try to fix vote reason string X-Git-Tag: xonotic-v0.7.0~64 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=9835b8ae966b6e3224356bb4ac553b9809a56c9d Try to fix vote reason string --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 199e3265a8..5e7810a4a4 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -611,7 +611,7 @@ float VoteCommand_parse(entity caller, string vote_command, string vote_list, fl if(accepted > 0) { - string reason = ((argc > next_token) ? substring(vote_command, argv_start_index(next_token), argv_end_index(-1) - argv_start_index(next_token)) : "No reason provided"); + string reason = ((argc > next_token) ? substring(vote_command, argv_start_index(next_token), strlen(vote_command) - argv_start_index(next_token)) : "No reason provided"); string command_arguments; if(first_command == "kickban")