From 684abf58b435c388a8d8955eeca005ff15c3f891 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Wed, 19 Oct 2016 21:48:23 +0200 Subject: [PATCH] Minor code style fixes to previous commit Making this a separate commit to avoid invalidating the PGP signature, though it doesn't really matter for lykos anyway. --- src/wolfgame.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index b7db27d..7a3fadc 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -3063,9 +3063,9 @@ def del_player(cli, nick, forced_death=False, devoice=True, end_game=True, death var.START_VOTES.discard(nick) # Cancel the start vote timer if there are no votes left - if len(var.START_VOTES) < 1 and 'start_votes' in var.TIMERS: - var.TIMERS['start_votes'][0].cancel() - del var.TIMERS['start_votes'] + if not var.START_VOTES and "start_votes" in var.TIMERS: + var.TIMERS["start_votes"][0].cancel() + del var.TIMERS["start_votes"] # Died during the joining process as a person if var.AUTO_TOGGLE_MODES and nick in var.USERS and var.USERS[nick]["moded"]: