Browse Source

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

master
Jimmy Cao 13 years ago
parent
commit
d8d5145863
  1. 3
      modules/wolfgame.py

3
modules/wolfgame.py

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

Loading…
Cancel
Save