From 380c095447f78eaea57c721f8dc117d6a22c08ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 11 Dec 2019 22:13:06 +0200 Subject: [PATCH] Fix the game state not being cleared correctly if an incorrect preset was used --- gameloop.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gameloop.py b/gameloop.py index ecf7c72..10a167b 100644 --- a/gameloop.py +++ b/gameloop.py @@ -477,6 +477,8 @@ def game(send, notice, voice, devoice, get_event): else: send('Stopping game') + # If we don't do this, the partially started game state doesn't get cleared off correctly + return no_game elif event == events.join: send('Start a game with !start []')