Fix wrong revealroles message for driven away ghosts (fixes #141)

This commit is contained in:
Vgr E.Barry 2015-05-24 12:18:15 -04:00
parent 7cc9045181
commit 1af340a3cb

View File

@ -7476,8 +7476,9 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
# print out vengeful ghosts, also vengeful ghosts that were driven away by 'retribution' totem
if var.VENGEFUL_GHOSTS:
output.append("\u0002dead vengeful ghost\u0002: {0}".format(', '.join(["{0} (against {1})".format(
nickname, team.replace("!", "driven away, ")) for (nickname,team) in var.VENGEFUL_GHOSTS.items()])))
output.append("\u0002dead vengeful ghost\u0002: {0}".format(", ".join("{0} ({1}against {2})".format(
ghost, team.startswith("!") and "driven away, " or "", team.lstrip("!"))
for (ghost, team) in var.VENGEFUL_GHOSTS.items())))
#show bitten users + days until turning
if var.BITTEN: # and sum(var.BITTEN.values()) > 0: