remove player even if its not registered in player list of user (fix)

This commit is contained in:
Jannes Höke 2016-06-03 08:00:13 +02:00
parent fe98147377
commit ad2ae0a752

View file

@ -104,7 +104,7 @@ class GameManager(object):
if not player: if not player:
games = self.chatid_games[chat.id] games = self.chatid_games[chat.id]
for g in games: for g in games:
for p in g: for p in g.players:
if p.user.id == user.id: if p.user.id == user.id:
if p is g.current_player: if p is g.current_player:
g.turn() g.turn()