From caa880c9b1c2d90d65d2af7393cdafad4a1351b0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 6 Jul 2017 19:02:02 +0300 Subject: [PATCH] oops --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index ebc3320..09090bf 100644 --- a/main.py +++ b/main.py @@ -942,7 +942,7 @@ class Game: def joinplayer(self, bot, player): self.players.append(player) - self.message(bot, s.player_joined.format(name=p.tusername)) + self.message(bot, s.player_joined.format(name=player.tusername)) # Se รจ il primo giocatore ad unirsi, diventa admin if len(self.players) == 0: self.admin = player @@ -1032,8 +1032,7 @@ def debugjoin(bot, update): return arg = update.message.text.split(" ") p = Player(random.randrange(0, 10000), arg[1], True) # ewwwwww - game.message(bot, s.player_joined.format(name=p.tusername)) - game.players.append(p) + game.joinplayer(bot, p) def status(bot, update):