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