X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmisc.py;fp=mudpy%2Fmisc.py;h=c0f73a1faf6af70d44b7b5620de8acda50811c28;hp=7051ac96cd0a5808c663bfc1e93c1a2ac91afd5a;hb=3b59b8a74388427be4e06d0dad558d597ee34ef4;hpb=3878bed244ee3637eb0f3fc5e08840ef3b876dea diff --git a/mudpy/misc.py b/mudpy/misc.py index 7051ac9..c0f73a1 100644 --- a/mudpy/misc.py +++ b/mudpy/misc.py @@ -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."""