diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-24 18:45:39 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-24 18:45:39 +0100 |
commit | ad09c60c5f4668051331ff6db0203406a8118dc8 (patch) | |
tree | dd8c6e4494607684dd1487fc9ff137e566543d68 | |
parent | 766e95b3c528193f920c68a0a33eaebba6fbb492 (diff) | |
download | manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.gz manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.bz2 manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.xz manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.zip |
Set a max on the price.
-rwxr-xr-x | main.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -366,8 +366,8 @@ def process_whisper(nick, msg, mapserv): if amount > 1 and 'equip' in ItemDB.getItem(item_id).type: mapserv.sendall(whisper(nick, "You can only add one piece of equiptment per slot.")) return - elif price == 0: - mapserv.sendall(whisper(nick, "Nothing in life is free.")) + elif price == 0 or price > 50000000: + mapserv.sendall(whisper(nick, "Please use a valid price between 1-50000000gp.")) return item = Item() |