From b5c83eaf42750b9bc4ce343eb6a92553b4b6c2b1 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Mon, 26 Aug 2013 17:52:32 +0200 Subject: [PATCH] Allow negative value in !fwait This is a quite hacky way, and although in my tests, it does not crash the bot, it might be possible, and there might be a better way to do this. --- modules/wolfgame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index 2845cfd..d5d6387 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -2536,7 +2536,7 @@ def fwait(cli, nick, chann_, rest): return rest = re.split(" +", rest.strip(), 1)[0] - if rest and rest.isdigit(): + if rest and (rest.isdigit() or (rest[0] == '-' and rest[1:].isdigit())): if len(rest) < 4: extra = int(rest) else: