summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py3
1 files changed, 3 insertions, 0 deletions
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