From a79add474554000b0c00247e45fb994b52b58e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Fri, 11 Mar 2016 09:33:01 +0100 Subject: [PATCH] fix /start command --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index b671907..659fc84 100644 --- a/bot.py +++ b/bot.py @@ -140,7 +140,8 @@ def start_game(bot, update): chat_id = update.message.chat_id game = gm.chatid_game[chat_id] - if game.current_player in (None, game.current_player.next): + if game.current_player is None or \ + game.current_player is game.current_player.next: bot.sendMessage(chat_id, text="At least two players must /join " "the game before you can start it") elif game.started: