user.msg("Level must -2, 0, or a positive integer")
return
-
+ # Skip checks if the user is setting their own level to 0, or if the user is OWNER
if not (target == user and level == 0) and user.glevel != lib.OWNER:
+ if user.glevel <= lib.ADMIN:
+ user.msg("I'm afraid I can't let you do that. You can only reset your own level to 0.")
+ return
if user.glevel <= target.glevel:
user.msg("I'm afraid I can't let you do that. Your current access level is not higher than theirs.")
return