=Bug Fixes on Poll

This commit is contained in:
Alex
2019-07-03 03:28:32 -04:00
parent fbe9794026
commit 8daeedd1ce
11 changed files with 17 additions and 120 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ public class SubCommandVote extends SubCommand
}
try
{
int voteNum = Integer.parseInt(input)-1;
int voteNum = Integer.parseInt(input.substring(input.indexOf(" ")).trim())-1;
if(voteNum >= guild.choices.size() || voteNum < 0)
{
return new SubCommandFormattable (String.format(LocStrings.stub("PollVoteNotValidVote"), voteNum));