From 6122569f979456d41b81d25fa8d4d8037ef384ba Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Thu, 1 Sep 2011 10:28:52 +0100 Subject: Teeny oversight with help - if a non-added player typed it, would of locked up. --- main.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 64a3c2a..ae98c54 100755 --- a/main.py +++ b/main.py @@ -135,14 +135,15 @@ def process_whisper(nick, msg, mapserv): mapserv.sendall(whisper(nick, "you would type /whisper ManaMarket !buy 1 6" )) mapserv.sendall(whisper(nick, "This will purchase one of item 6 (Iron Ore).")) - if int(user.get('accesslevel')) >= 5: - mapserv.sendall(whisper(nick, "Ah, you have sellers access level. How lovely!")) # the first words the ticket seller told me when i was in london for the first time. How lovely! - mapserv.sendall(whisper(nick, "Use !add to tell me which items I should trade for you:")) - mapserv.sendall(whisper(nick, "For example !add 10 1000 Iron Ore would tell me to sell 10 [@@640|Iron Ore@@] for a price of 1000 gp")) - mapserv.sendall(whisper(nick, "Later you can whisper me !money to get back your money. In the example given, I'd give you 10*1000 = 10000gp")) - if int(user.get('accesslevel')) == 20: - mapserv.sendall(whisper(nick, "You're my master! How should I serve you?")) - mapserv.sendall(whisper(nick, "You also have access to the following commands: !listusers, !setslots , !setaccess , !adduser ")) + if user != -10: + if int(user.get('accesslevel')) >= 5: + mapserv.sendall(whisper(nick, "Ah, you have sellers access level. How lovely!")) # the first words the ticket seller told me when i was in london for the first time. How lovely! + mapserv.sendall(whisper(nick, "Use !add to tell me which items I should trade for you:")) + mapserv.sendall(whisper(nick, "For example !add 10 1000 Iron Ore would tell me to sell 10 [@@640|Iron Ore@@] for a price of 1000 gp")) + mapserv.sendall(whisper(nick, "Later you can whisper me !money to get back your money. In the example given, I'd give you 10*1000 = 10000gp")) + if int(user.get('accesslevel')) == 20: + mapserv.sendall(whisper(nick, "You're my master! How should I serve you?")) + mapserv.sendall(whisper(nick, "You also have access to the following commands: !listusers, !setslots , !setaccess , !adduser ")) elif len(broken_string) == 2: if broken_string[1] == '!buy': -- cgit v1.2.3-70-g09d2