summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-24 15:21:47 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-24 15:21:47 +0100
commite7d3136463e4a52d6af47e36f21b6ad0303369e8 (patch)
tree32d4e5d33d5699ac3ca2bbd5d34e65204061565a /main.py
parentcb31905b26679c5a0c9a7335943d0d1afe4547bc (diff)
downloadmanamarket-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-xmain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.py b/main.py
index 75afabf..cda4edd 100755
--- a/main.py
+++ b/main.py
@@ -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])