summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-09-01 10:28:52 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-09-01 10:28:52 +0100
commit6122569f979456d41b81d25fa8d4d8037ef384ba (patch)
tree7e7aaa0d35d0d2811c4a7997de3676caf3ac6ceb
parent143f77c73df2ffdac65603db6a480d28d7861a5e (diff)
downloadmanamarket-6122569f979456d41b81d25fa8d4d8037ef384ba.tar.gz
manamarket-6122569f979456d41b81d25fa8d4d8037ef384ba.tar.bz2
manamarket-6122569f979456d41b81d25fa8d4d8037ef384ba.tar.xz
manamarket-6122569f979456d41b81d25fa8d4d8037ef384ba.zip
Teeny oversight with help - if a non-added player typed it, would of locked up.
-rwxr-xr-xmain.py17
1 files 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 <slots> <name>, !setaccess <access level > <name>, !adduser <access level> <slot> <name>"))
+ 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 <slots> <name>, !setaccess <access level > <name>, !adduser <access level> <slot> <name>"))
elif len(broken_string) == 2:
if broken_string[1] == '!buy':