Make frole only work during game

This commit is contained in:
skizzerz 2016-02-03 20:30:15 -06:00
parent abc90530d8
commit 69f72499ef

View File

@ -9219,7 +9219,7 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
@cmd("frole", admin_only=True)
@cmd("frole", admin_only=True, phases=("day", "night"))
def frole(cli, nick, chan, rest):
"""Change the role or template of a player."""
rst = re.split(" +",rest)
@ -9311,7 +9311,6 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
cli.msg(chan, messages["invalid_role"])
return
cli.msg(chan, messages["operation_successful"])
if var.PHASE not in ("none", "join"):
# default stats determination does not work if we're mucking with !frole
if var.STATS_TYPE == "default":
var.ORIGINAL_SETTINGS["STATS_TYPE"] = var.STATS_TYPE