From d32e7a8282ca076f2a2c7e66659ebf2b7828d891 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 13 Oct 2016 20:25:52 +0200 Subject: [PATCH] Make examine represent Session id's in a less confusing way, as exemplified by #1075. --- evennia/commands/default/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 0f1f805b1c..c84c95774f 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -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