Fix session retrieve in examine, update changelog

This commit is contained in:
Griatch 2019-10-17 00:24:52 +02:00
parent bc5210eb9c
commit 88a49334f2
2 changed files with 3 additions and 1 deletions

View file

@ -2579,9 +2579,10 @@ class CmdExamine(ObjManipCommand):
# we are only interested in specific attributes
caller.msg(self.format_attributes(obj, attrname, crop=False))
else:
session = obj.sessions.get()[0]
session = None
if obj.sessions.count():
mergemode = "session"
session = obj.sessions.get()[0]
elif self.account_mode:
mergemode = "account"
else: