Correctly call the parent at_sync in the serversession. Resolves #1555.

This commit is contained in:
Griatch 2018-01-20 23:59:28 +01:00
parent 313bc1c4a4
commit 13f9bc4afa
2 changed files with 3 additions and 1 deletions

View file

@ -188,6 +188,7 @@ class ServerSession(Session):
if not _ObjectDB:
from evennia.objects.models import ObjectDB as _ObjectDB
super(ServerSession, self).at_sync()
if not self.logged_in:
# assign the unloggedin-command set.
self.cmdset_storage = settings.CMDSET_UNLOGGEDIN

View file

@ -133,7 +133,8 @@ class Session(object):
on uid etc).
"""
self.protocol_flags.update(self.account.attributs.get("_saved_protocol_flags"), {})
if self.account:
self.protocol_flags.update(self.account.attributes.get("_saved_protocol_flags"), {})
# access hooks