mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
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:
parent
495db52f75
commit
c1921be469
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue