mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Check for a valid session on the webclient_options monitor handler
This commit is contained in:
parent
254a746770
commit
67d3f6650e
1 changed files with 4 additions and 1 deletions
|
|
@ -433,7 +433,10 @@ def _on_webclient_options_change(**kwargs):
|
|||
fieldname = kwargs["fieldname"]
|
||||
clientoptions = _GA(obj, fieldname)
|
||||
|
||||
session.msg(webclient_options=clientoptions)
|
||||
# the session may be None if the char quits and someone
|
||||
# else then edits the object
|
||||
if session:
|
||||
session.msg(webclient_options=clientoptions)
|
||||
|
||||
|
||||
def webclient_options(session, *args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue