From 279328296dfe088073e2983a5eb976ab3259acd0 Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Fri, 4 Sep 2015 08:25:50 -0400 Subject: [PATCH] Fix 'devoice' parameter not working in some cases in del_player --- src/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 4b34dcf..4e5df7c 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -2885,7 +2885,7 @@ def del_player(cli, nick, forced_death = False, devoice = True, end_game = True, cli.msg(botconfig.CHANNEL, tmsg) debuglog(nick, "(mad scientist) KILL FAIL") - if var.PHASE != "night" or devoice and not var.DEVOICE_DURING_NIGHT: + if devoice and (var.PHASE != "night" or not var.DEVOICE_DURING_NIGHT): cmode.append(("-v", nick)) if var.PHASE == "join": if nick in var.GAMEMODE_VOTES: