fstasis: Improve non-negative integer message

Suggested by @ecksdee.
This commit is contained in:
nyuszika7h 2014-11-16 10:33:56 +01:00
parent 5f98397dfb
commit 6468cf42b7

View File

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