summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-24 18:45:39 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-24 18:45:39 +0100
commitad09c60c5f4668051331ff6db0203406a8118dc8 (patch)
treedd8c6e4494607684dd1487fc9ff137e566543d68
parent766e95b3c528193f920c68a0a33eaebba6fbb492 (diff)
downloadmanamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.gz
manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.bz2
manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.tar.xz
manamarket-ad09c60c5f4668051331ff6db0203406a8118dc8.zip
Set a max on the price.
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index c4aa6b4..7799086 100755
--- a/main.py
+++ b/main.py
@@ -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()