From be7725842bfafe91c9ece2294c1997cd6148731c Mon Sep 17 00:00:00 2001 From: jcao219 Date: Thu, 28 Jul 2011 15:30:35 -0500 Subject: [PATCH] !fleave tells the other players what the kicked player's role was, and now dead players are no longer wounded if they die during the day --- wolfgame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfgame.py b/wolfgame.py index 31348db..7bcbe94 100644 --- a/wolfgame.py +++ b/wolfgame.py @@ -368,6 +368,7 @@ def fleave(cli, nick, chan, rest): return cli.msg(chan, ("\u0002{0}\u0002 is forcing"+ " \u0002{1}\u0002 to leave.").format(nick, a)) + cli.msg(chan, "Appears (s)he was a \02{0}\02.".format(var.get_role(a))) del_player(cli, a) @@ -689,6 +690,8 @@ def del_player(cli, nick, forced_death = False): for k in var.VOTES.keys(): if nick in var.VOTES[k]: var.VOTES[k].remove(nick) + if nick in var.WOUNDED: + var.WOUNDED.remove(nick) chk_decision(cli) return ret