Properly restore var.ROLES["person"] if we can't apply templates. Closes #34

This commit is contained in:
skizzerz 2014-07-19 17:45:03 -05:00
parent e0df1de960
commit d0c21560ac

View File

@ -3957,6 +3957,7 @@ def start(cli, nick, chann_, rest):
if len(possible) < len(var.ROLES[template]):
cli.msg(chan, "Not enough valid targets for the {0} template.".format(template))
if var.ORIGINAL_SETTINGS:
var.ROLES = {"person": var.ALL_PLAYERS}
reset_settings()
cli.msg(chan, "The default settings have been restored. Please !start again.")
var.PHASE = "join"