From 95268406ab7d19032307652d97c8f81fc69ae6ba Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 14 May 2013 15:25:35 +0200 Subject: [PATCH] Made @examine show the superuser flag also when called as a Player. Removed some debug printouts. --- src/commands/default/building.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/default/building.py b/src/commands/default/building.py index 2cbbeda621..82d229d021 100644 --- a/src/commands/default/building.py +++ b/src/commands/default/building.py @@ -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"):