mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 15:37:17 +02:00
Allow options to partially update portal session, correctly relay late handshakes.
This commit is contained in:
parent
9355b255ad
commit
c8b1dfcd20
5 changed files with 38 additions and 12 deletions
|
|
@ -538,6 +538,22 @@ class ServerSessionHandler(SessionHandler):
|
|||
sessiondata=sessdata,
|
||||
clean=False)
|
||||
|
||||
def session_portal_partial_sync(self, session_data):
|
||||
"""
|
||||
Call to make a partial update of the session, such as only a particular property.
|
||||
|
||||
Args:
|
||||
session_data (dict): Store `{sessid: {property:value}, ...}` defining one or
|
||||
more sessions in detail.
|
||||
|
||||
"""
|
||||
return self.server.amp_protocol.send_AdminServer2Portal(DUMMYSESSION,
|
||||
operation=SSYNC,
|
||||
sessiondata=session_data,
|
||||
clean=False)
|
||||
|
||||
|
||||
|
||||
def disconnect_all_sessions(self, reason="You have been disconnected."):
|
||||
"""
|
||||
Cleanly disconnect all of the connected sessions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue