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.
This commit is contained in:
nyuszika7h 2013-08-26 17:52:32 +02:00
parent f49e7371b8
commit b5c83eaf42

View File

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