Revert "fstasis: Improve non-negative integer message"

This reverts commit 6468cf42b76a6cc7ae982f453c6fffbff79a839f.

The new message is confusing, as it doesn't exclude floating point
numbers, which are invalid here.
This commit is contained in:
nyuszika7h 2014-11-16 10:37:17 +01:00
parent 6468cf42b7
commit 54d45ba02c

View File

@ -5100,17 +5100,17 @@ def fstasis(cli, nick, chan, rest):
amt = int(data[1])
except ValueError:
if chan == nick:
pm(cli, nick, "The amount of stasis cannot be a negative integer.")
pm(cli, nick, "The amount of stasis has to be a non-negative integer.")
else:
cli.notice(nick, "The amount of stasis cannot be a negative integer.")
cli.notice(nick, "The amount of stasis has to be a non-negative integer.")
return
if amt < 0:
if chan == nick:
pm(cli, nick, "The amount of stasis cannot be a negative integer.")
pm(cli, nick, "The amount of stasis has to be a non-negative integer.")
else:
cli.notice(nick, "The amount of stasis cannot be a negative integer.")
cli.notice(nick, "The amount of stasis has to be a non-negative integer.")
return