From 656a56478c3f506b5b3ed113a20b39c94daf329f Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Fri, 2 Sep 2011 21:00:35 +0100 Subject: zero amount in add command --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index d4dca90..ccc1b6b 100755 --- a/main.py +++ b/main.py @@ -387,6 +387,9 @@ def process_whisper(nick, msg, mapserv): elif price == 0 or price > 50000000: mapserv.sendall(whisper(nick, "Please use a valid price between 1-50000000gp.")) return + elif amount == 0: + mapserv.sendall(whisper(nick, "You can't add 0 of an item.")) + return item = Item() item.player = nick -- cgit v1.2.3-70-g09d2