Make !frole not cause duplicate entries in the list of cursed villagers

This commit is contained in:
Jimmy Cao 2012-08-25 11:32:36 -05:00
parent e0ebc4bd40
commit a5b6c363d6

View File

@ -2914,6 +2914,7 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
if who not in pl:
var.ROLES["villager"].append(who)
elif rol == "cursed villager":
if who not in var.CURSED:
var.CURSED.append(who)
if who not in pl:
var.ROLES["villager"].append(who)