always use current player for showing whose turn it is

This commit is contained in:
Jannes Höke 2016-03-01 09:32:21 +01:00
parent f937aea051
commit 63a2a4ca81

2
bot.py
View file

@ -231,7 +231,7 @@ def chosen_card(bot, update):
gm.leave_game(user)
bot.sendMessage(chat_id, text="Player won!")
player_name = player.user.first_name
player_name = game.current_player.user.first_name
if player.user.username:
player_name += ' (@' + player.user.username + ')'
bot.sendMessage(chat_id, text="Next player: " + player_name)