fstasis: Improve non-negative integer message
Suggested by @ecksdee.
This commit is contained in:
parent
5f98397dfb
commit
6468cf42b7
@ -5100,17 +5100,17 @@ def fstasis(cli, nick, chan, rest):
|
|||||||
amt = int(data[1])
|
amt = int(data[1])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
if chan == nick:
|
if chan == nick:
|
||||||
pm(cli, nick, "The amount of stasis has to be a non-negative integer.")
|
pm(cli, nick, "The amount of stasis cannot be a negative integer.")
|
||||||
else:
|
else:
|
||||||
cli.notice(nick, "The amount of stasis has to be a non-negative integer.")
|
cli.notice(nick, "The amount of stasis cannot be a negative integer.")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if amt < 0:
|
if amt < 0:
|
||||||
if chan == nick:
|
if chan == nick:
|
||||||
pm(cli, nick, "The amount of stasis has to be a non-negative integer.")
|
pm(cli, nick, "The amount of stasis cannot be a negative integer.")
|
||||||
else:
|
else:
|
||||||
cli.notice(nick, "The amount of stasis has to be a non-negative integer.")
|
cli.notice(nick, "The amount of stasis cannot be a negative integer.")
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user