projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Recast is_restricted() to a bool
[mudpy.git]
/
mudpy
/
misc.py
diff --git
a/mudpy/misc.py
b/mudpy/misc.py
index
7051ac9
..
c0f73a1
100644
(file)
--- 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."""
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."""
def is_admin(self):
"""Boolean check whether an actor is controlled by an admin owner."""