Browse Source

!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

master
jcao219 14 years ago
parent
commit
be7725842b
  1. 3
      wolfgame.py

3
wolfgame.py

@ -368,6 +368,7 @@ def fleave(cli, nick, chan, rest): @@ -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): @@ -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

Loading…
Cancel
Save