]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Try to fix vote reason string
authorSamual Lenks <samual@xonotic.org>
Wed, 1 May 2013 18:54:14 +0000 (14:54 -0400)
committerSamual Lenks <samual@xonotic.org>
Wed, 1 May 2013 18:54:14 +0000 (14:54 -0400)
qcsrc/server/command/vote.qc

index 199e3265a8f75672ea0fe9ce53ffea1ddfb8853a..5e7810a4a48633f2285e29d91c024ac4d25b6631 100644 (file)
@@ -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")