diff options
-rwxr-xr-x | main.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -422,6 +422,9 @@ def process_whisper(nick, msg, mapserv): return if broken_string[1].isdigit() and broken_string[2].isdigit(): + if int(broken_string[1]) > user.get("accesslevel"): + mapserv.sendall(whisper(nick, "You can't give someone a higher accesslevel than your own.")) + return al = int(broken_string[1]) stalls = int(broken_string[2]) player_name = " ".join(broken_string[3:]) |