fix issue where people would join a game twice

This commit is contained in:
Jannes Höke 2016-05-23 13:14:42 +02:00
parent ecc0b3adc7
commit 7fd3c662a5

View file

@ -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)