Make examine represent Session id's in a less confusing way, as exemplified by #1075.

This commit is contained in:
Griatch 2016-10-13 20:25:52 +02:00
parent a467d2984e
commit d32e7a8282

View file

@ -1901,8 +1901,8 @@ class CmdExamine(ObjManipCommand):
string = "\n|wName/key|n: |c%s|n (%s)" % (obj.name, obj.dbref)
if hasattr(obj, "aliases") and obj.aliases.all():
string += "\n|wAliases|n: %s" % (", ".join(utils.make_iter(str(obj.aliases))))
if hasattr(obj, "sessions") and obj.sessions:
string += "\n|wsession(s)|n: %s" % (", ".join(str(sess.sessid)
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, "has_player") and obj.has_player:
string += "\n|wPlayer|n: |c%s|n" % obj.player.name