fix issue where people would join a game twice
This commit is contained in:
parent
ecc0b3adc7
commit
7fd3c662a5
1 changed files with 5 additions and 0 deletions
|
@ -80,6 +80,11 @@ class GameManager(object):
|
|||
except NotEnoughPlayersError:
|
||||
self.end_game(chat, user)
|
||||
|
||||
if user.id not in self.userid_players:
|
||||
self.userid_players[user.id] = list()
|
||||
|
||||
players = self.userid_players[user.id]
|
||||
|
||||
player = Player(game, user)
|
||||
|
||||
players.append(player)
|
||||
|
|
Loading…
Reference in a new issue