diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2011-08-24 19:27:30 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2011-08-24 19:28:50 +0200 |
commit | 309847f46d4ce1775b2539f650b1abf5739c7b6a (patch) | |
tree | 70519860fdfb32b2f94897e084d6f0b7fc61e400 | |
parent | a58156c4272b0d03cc9ccef46e9d5a364eb5065c (diff) | |
download | manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.gz manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.bz2 manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.tar.xz manamarket-309847f46d4ce1775b2539f650b1abf5739c7b6a.zip |
improve blocked users
-rwxr-xr-x | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |