summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2011-08-24 19:27:30 +0200
committerStefan Beller <stefanbeller@googlemail.com>2011-08-24 19:28:50 +0200
commit309847f46d4ce1775b2539f650b1abf5739c7b6a (patch)
tree70519860fdfb32b2f94897e084d6f0b7fc61e400
parenta58156c4272b0d03cc9ccef46e9d5a364eb5065c (diff)
downloadmanamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.gz
manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.bz2
manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.xz
manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.zip
improve blocked users
-rwxr-xr-xmain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index cda4edd..fe3c634 100755
--- a/main.py
+++ b/main.py
@@ -47,6 +47,10 @@ def process_whisper(nick, msg, mapserv):
if int(user.get("used_slots")) == 0 and int(user.get("money")) == 0:
mapserv.sendall(whisper(nick, "You can no longer use the bot. If you feel this is in error, please contact <administrator>."))
return
+ allowed_commands = ['!money', '!help', '!getback' ]
+ if not broken_string[0] in allowed_commands:
+ mapserv.sendall(whisper(nick, "Your access level has been set to blocked! If you feel this is in error, please contact <administrator>."))
+ mapserv.sendall(whisper(nick, "Though, you still can do the following: "+str(allowed_commands))
if msg == "!list":
# Sends the list of items for sale.