From 5965848bcfcb3b8172ededfdca768573b658c357 Mon Sep 17 00:00:00 2001 From: Janik Kleinhoff Date: Sun, 26 Oct 2014 02:10:52 +0100 Subject: [PATCH] !fwait: Allow arbitrary wait durations We indeed don't have all day, but people with access to fwait should know as much already anyway. Additionally, this interfered with undoing a long fwait; !fwait 9999 was possible, !fwait -9999 was not. --- modules/wolfgame.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 7f97f18..e23c78a 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -5194,11 +5194,7 @@ def fwait(cli, nick, chann_, rest): rest = re.split(" +", rest.strip(), 1)[0] if rest and (rest.isdigit() or (rest[0] == '-' and rest[1:].isdigit())): - if len(rest) < 4: - extra = int(rest) - else: - cli.msg(chan, "{0}: We don't have all day!".format(nick)) - return + extra = int(rest) else: extra = var.EXTRA_WAIT