From ad09c60c5f4668051331ff6db0203406a8118dc8 Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Wed, 24 Aug 2011 18:45:39 +0100 Subject: Set a max on the price. --- main.py | 4 ++-- 1 file 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() -- cgit v1.2.3-70-g09d2