From b047963cdbdfc1df919a3d5bd6eee325acbead5f Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 3 Oct 2015 22:44:48 -0400 Subject: [PATCH] fix !roles roles erroring --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 499e5df..5a91bfc 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -7941,7 +7941,7 @@ def listroles(cli, nick, chan, rest): roleguide = var.ORIGINAL_SETTINGS["ROLE_GUIDE"] rest.pop(0) 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)) else: msg.append("{0}: {1} is not a valid game mode.".format(nick, rest[0]))