mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Multisession mode cleanup.
This commit is contained in:
parent
aac9ba7b8b
commit
ba3bd91851
2 changed files with 3 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class ServerSession(Session):
|
|||
if self.logged_in:
|
||||
sessid = self.sessid
|
||||
player = self.player
|
||||
player.unpuppet_object(sessid)
|
||||
player.unpuppet_object(sessid, ignore_empty=True)
|
||||
uaccount = player
|
||||
uaccount.last_login = datetime.now()
|
||||
uaccount.save()
|
||||
|
|
|
|||
|
|
@ -456,7 +456,8 @@ class ServerSessionHandler(SessionHandler):
|
|||
|
||||
"""
|
||||
sessions = make_iter(session)
|
||||
text = text and to_str(to_unicode(text), encoding=sessions[0].encoding)
|
||||
session = sessions[0]
|
||||
text = text and to_str(to_unicode(text), encoding=session.encoding)
|
||||
multi = not kwargs.pop("_nomulti", None)
|
||||
forced_nomulti = kwargs.pop("_forced_nomulti", None)
|
||||
# Mode 1 mirrors to all.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue