Update format_output on CmdExamine

Updated format_output on CmdExamine to add a check for email attribute. If true, it displays the email address.
This commit is contained in:
John Steensen 2017-01-01 18:59:33 -07:00 committed by Griatch
parent 495db52f75
commit c1921be469

View file

@ -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()