diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-02 21:00:35 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-09-02 21:00:35 +0100 |
commit | 656a56478c3f506b5b3ed113a20b39c94daf329f (patch) | |
tree | 122a69e705ebf39ed6585b6b933006f5c0b242f9 | |
parent | 73fee5ebe5118e8ff2d32145b890d03449e9c1d3 (diff) | |
download | manamarket-656a56478c3f506b5b3ed113a20b39c94daf329f.tar.gz manamarket-656a56478c3f506b5b3ed113a20b39c94daf329f.tar.bz2 manamarket-656a56478c3f506b5b3ed113a20b39c94daf329f.tar.xz manamarket-656a56478c3f506b5b3ed113a20b39c94daf329f.zip |
zero amount in add command
-rwxr-xr-x | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |