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:
parent
f49e7371b8
commit
b5c83eaf42
@ -2536,7 +2536,7 @@ def fwait(cli, nick, chann_, rest):
|
|||||||
return
|
return
|
||||||
|
|
||||||
rest = re.split(" +", rest.strip(), 1)[0]
|
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:
|
if len(rest) < 4:
|
||||||
extra = int(rest)
|
extra = int(rest)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user