Fix 'devoice' parameter not working in some cases in del_player

This commit is contained in:
Vgr E. Barry 2015-09-04 08:25:50 -04:00
parent 0d316d1ec6
commit 279328296d

View File

@ -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: