mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 15:07:16 +02:00
Made @examine show the superuser flag also when called as a Player. Removed some debug printouts.
This commit is contained in:
parent
25f1d7b627
commit
95268406ab
1 changed files with 5 additions and 1 deletions
|
|
@ -1547,7 +1547,6 @@ class CmdExamine(ObjManipCommand):
|
|||
else:
|
||||
if self.player_mode:
|
||||
db_attr = [(attr.key, attr.value) for attr in PlayerAttribute.objects.filter(db_obj=obj)]
|
||||
print "player mode:", db_attr
|
||||
else:
|
||||
db_attr = [(attr.key, attr.value) for attr in ObjAttribute.objects.filter(db_obj=obj)]
|
||||
try:
|
||||
|
|
@ -1601,12 +1600,17 @@ class CmdExamine(ObjManipCommand):
|
|||
perms_string = (", ".join(perms))
|
||||
else:
|
||||
perms_string = "Default"
|
||||
if obj.is_superuser:
|
||||
perms_string += " [Superuser]"
|
||||
|
||||
string += "\n{wPermissions{n: %s" % perms_string
|
||||
locks = str(obj.locks)
|
||||
if locks:
|
||||
locks_string = utils.fill("; ".join([lock for lock in locks.split(';')]), indent=6)
|
||||
else:
|
||||
locks_string = " Default"
|
||||
|
||||
|
||||
string += "\n{wLocks{n:%s" % locks_string
|
||||
|
||||
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "Empty"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue