forked from test/mau_mau_bot
remove player even if its not registered in player list of user (fix)
This commit is contained in:
parent
fe98147377
commit
ad2ae0a752
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class GameManager(object):
|
|||
if not player:
|
||||
games = self.chatid_games[chat.id]
|
||||
for g in games:
|
||||
for p in g:
|
||||
for p in g.players:
|
||||
if p.user.id == user.id:
|
||||
if p is g.current_player:
|
||||
g.turn()
|
||||
|
|
Loading…
Reference in a new issue