fix player who died last in the previous game being automatically joined to the deadchat the next game

This commit is contained in:
jacob1 2015-11-06 12:07:34 -05:00
parent 6aedc39352
commit 217c8ffc8e

View File

@ -3163,8 +3163,9 @@ def del_player(cli, nick, forced_death=False, devoice=True, end_game=True, death
var.DEAD.add(nick)
ret = not chk_win(cli, end_game)
# only join to deadchat if the game isn't about to end
if ismain and ret:
join_deadchat(cli, *deadchat)
if ismain:
if ret:
join_deadchat(cli, *deadchat)
del deadchat[:]
if var.PHASE in ("night", "day") and ret:
# remove the player from variables if they're in there