Only start GLOBAL_SCRIPTS in Server mode

This commit is contained in:
Ben Longden 2023-08-24 16:54:53 +01:00
parent b819bff556
commit 5d2ce0e409

View file

@ -227,7 +227,6 @@ def _init(portal_mode=False):
else:
# Create the ServerSesssionHandler
from evennia.server import sessionhandler
sess_handler_class = class_from_module(settings.SERVER_SESSION_HANDLER_CLASS)
sessionhandler.SESSIONS = sess_handler_class()
sessionhandler.SESSION_HANDLER = sessionhandler.SESSIONS
@ -378,7 +377,8 @@ def _init(portal_mode=False):
# delayed starts - important so as to not back-access evennia before it has
# finished initializing
GLOBAL_SCRIPTS.start()
if not portal_mode:
GLOBAL_SCRIPTS.start()
def set_trace(term_size=(140, 80), debugger="auto"):