+ def is_restricted(self):
+ """Boolean check whether command is administrative or debugging."""
+ return(
+ self.get("administrative", False) or self.get("debugging", False))
+
+ def is_admin(self):
+ """Boolean check whether an actor is controlled by an admin owner."""
+ return(self.owner and self.owner.is_admin())
+