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:
|
else:
|
||||||
if self.player_mode:
|
if self.player_mode:
|
||||||
db_attr = [(attr.key, attr.value) for attr in PlayerAttribute.objects.filter(db_obj=obj)]
|
db_attr = [(attr.key, attr.value) for attr in PlayerAttribute.objects.filter(db_obj=obj)]
|
||||||
print "player mode:", db_attr
|
|
||||||
else:
|
else:
|
||||||
db_attr = [(attr.key, attr.value) for attr in ObjAttribute.objects.filter(db_obj=obj)]
|
db_attr = [(attr.key, attr.value) for attr in ObjAttribute.objects.filter(db_obj=obj)]
|
||||||
try:
|
try:
|
||||||
|
|
@ -1601,12 +1600,17 @@ class CmdExamine(ObjManipCommand):
|
||||||
perms_string = (", ".join(perms))
|
perms_string = (", ".join(perms))
|
||||||
else:
|
else:
|
||||||
perms_string = "Default"
|
perms_string = "Default"
|
||||||
|
if obj.is_superuser:
|
||||||
|
perms_string += " [Superuser]"
|
||||||
|
|
||||||
string += "\n{wPermissions{n: %s" % perms_string
|
string += "\n{wPermissions{n: %s" % perms_string
|
||||||
locks = str(obj.locks)
|
locks = str(obj.locks)
|
||||||
if locks:
|
if locks:
|
||||||
locks_string = utils.fill("; ".join([lock for lock in locks.split(';')]), indent=6)
|
locks_string = utils.fill("; ".join([lock for lock in locks.split(';')]), indent=6)
|
||||||
else:
|
else:
|
||||||
locks_string = " Default"
|
locks_string = " Default"
|
||||||
|
|
||||||
|
|
||||||
string += "\n{wLocks{n:%s" % locks_string
|
string += "\n{wLocks{n:%s" % locks_string
|
||||||
|
|
||||||
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "Empty"):
|
if not (len(obj.cmdset.all()) == 1 and obj.cmdset.current.key == "Empty"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue