From c1921be4691311fd601d4e10688f978aa207ad64 Mon Sep 17 00:00:00 2001 From: John Steensen Date: Sun, 1 Jan 2017 18:59:33 -0700 Subject: [PATCH] Update format_output on CmdExamine Updated format_output on CmdExamine to add a check for email attribute. If true, it displays the email address. --- evennia/commands/default/building.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 51b2cb01f7..48494cfd01 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -1914,6 +1914,8 @@ class CmdExamine(ObjManipCommand): if hasattr(obj, "sessions") and obj.sessions.all(): string += "\n|wSession id(s)|n: %s" % (", ".join("#%i" % sess.sessid for sess in obj.sessions.all())) + if hasattr(obj, "email") and obj.email: + string += "\n|wE-Mail:|n: |c%s|n" % obj.email if hasattr(obj, "has_player") and obj.has_player: string += "\n|wPlayer|n: |c%s|n" % obj.player.name perms = obj.player.permissions.all()