fix !roles roles erroring
This commit is contained in:
parent
86ae193541
commit
b047963cdb
@ -7941,7 +7941,7 @@ def listroles(cli, nick, chan, rest):
|
|||||||
roleguide = var.ORIGINAL_SETTINGS["ROLE_GUIDE"]
|
roleguide = var.ORIGINAL_SETTINGS["ROLE_GUIDE"]
|
||||||
rest.pop(0)
|
rest.pop(0)
|
||||||
else:
|
else:
|
||||||
if gamemode in var.GAME_MODES and not hasattr(var.GAME_MODES[gamemode][0](), "ROLE_GUIDE"):
|
if gamemode in var.GAME_MODES and gamemode != "roles" and not hasattr(var.GAME_MODES[gamemode][0](), "ROLE_GUIDE"):
|
||||||
msg.append("{0}: {1}roles is disabled for the {2} game mode.".format(nick, botconfig.CMD_CHAR, gamemode))
|
msg.append("{0}: {1}roles is disabled for the {2} game mode.".format(nick, botconfig.CMD_CHAR, gamemode))
|
||||||
else:
|
else:
|
||||||
msg.append("{0}: {1} is not a valid game mode.".format(nick, rest[0]))
|
msg.append("{0}: {1} is not a valid game mode.".format(nick, rest[0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user