diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-24 15:21:47 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-24 15:21:47 +0100 |
commit | e7d3136463e4a52d6af47e36f21b6ad0303369e8 (patch) | |
tree | 32d4e5d33d5699ac3ca2bbd5d34e65204061565a /main.py | |
parent | cb31905b26679c5a0c9a7335943d0d1afe4547bc (diff) | |
download | manamarket-e7d3136463e4a52d6af47e36f21b6ad0303369e8.tar.gz manamarket-e7d3136463e4a52d6af47e36f21b6ad0303369e8.tar.bz2 manamarket-e7d3136463e4a52d6af47e36f21b6ad0303369e8.tar.xz manamarket-e7d3136463e4a52d6af47e36f21b6ad0303369e8.zip |
Prevent blocked users from buying items.
Diffstat (limited to 'main.py')
-rwxr-xr-x | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -392,6 +392,10 @@ def process_whisper(nick, msg, mapserv): mapserv.sendall(whisper(nick, "Syntax incorrect.")) return + if int(user.get("accesslevel")) == -1: + mapserv.sendall(whisper(nick, "You don't have the correct permissions.")) + return + if broken_string[1].isdigit() and broken_string[2].isdigit(): amount = int(broken_string[1]) uid = int(broken_string[2]) |