From 698d6f86ae3576d0a8f04e243ed412824b2f321c Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Thu, 1 Jan 2015 19:19:56 +0000 Subject: [PATCH] START_QUIT_DELAY: fix duration check --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index f9340fa..e00e099 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2732,7 +2732,7 @@ def leave_game(cli, nick, chan, rest): population = (" New player count: \u0002{0}\u0002").format(lpl) else: dur = int(var.START_QUIT_DELAY - (datetime.now() - var.GAME_START_TIME).total_seconds()) - if var.START_QUIT_DELAY and dur: + if var.START_QUIT_DELAY and dur > 0: cli.notice(nick, "The game already started! If you still want to quit, try again in {0} second{1}.".format(dur, "" if dur == 1 else "s")) return population = ""