From d8d5145863b0da7aabf8e51dbc22707f5fb2684f Mon Sep 17 00:00:00 2001 From: Jimmy Cao Date: Sat, 25 Aug 2012 11:32:36 -0500 Subject: [PATCH] Make !frole not cause duplicate entries in the list of cursed villagers --- modules/wolfgame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index eaf1a1a..0e1c640 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2914,7 +2914,8 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS: if who not in pl: var.ROLES["villager"].append(who) elif rol == "cursed villager": - var.CURSED.append(who) + if who not in var.CURSED: + var.CURSED.append(who) if who not in pl: var.ROLES["villager"].append(who) else: