From 996a25cf454340fbb042294d1a7b7f7ce1cf4349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Thu, 9 May 2019 10:34:38 +0300 Subject: [PATCH] Handle !start gracefully in game_setup --- gameloop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index df3dae2..058ff8b 100644 --- a/gameloop.py +++ b/gameloop.py @@ -381,7 +381,10 @@ def game(send, notice, voice, devoice, get_event): send('Game setup, waiting for %s to be ready' % ', '.join(i.nick for i in players_unready)) elif event == events.start: - break + if len(args) == 1: + break + else: + send('Can\'t apply presets once the game setup has started. Here !start begins the game without waiting for !ready') elif event == events.ready: nick, = args