Recast is_restricted() to a bool
[mudpy.git] / mudpy / misc.py
index 7051ac9..c0f73a1 100644 (file)
@@ -186,8 +186,7 @@ class Element:
 
     def is_restricted(self):
         """Boolean check whether command is administrative or debugging."""
-        return self.get(
-            "administrative", False) or self.get("debugging", False)
+        return bool(self.get("administrative") or self.get("debugging"))
 
     def is_admin(self):
         """Boolean check whether an actor is controlled by an admin owner."""