Handle !start <preset> gracefully in game_setup

This commit is contained in:
Juhani Krekelä 2019-05-09 10:34:38 +03:00
parent 819803d998
commit 996a25cf45
1 changed files with 4 additions and 1 deletions

View File

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