I think this will fix voting

This commit is contained in:
James Scott 2012-12-16 19:25:26 -05:00
parent 21220726d4
commit b132091076
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ class Cah(callbacks.Plugin):
game.votes = {}
game.voting = False
winner = self._tallyVotes(game.votes)
game.game.end_round(winner[0], self.cardsPlayed)
print winner
game.game.end_round(winner[0][0], self.cardsPlayed)
game._msg(self.channel, "%s wins the round!" % winner[0][0])
game.nextround()