fix player who died last in the previous game being automatically joined to the deadchat the next game
This commit is contained in:
parent
6aedc39352
commit
217c8ffc8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user