Remove AMP_ENABLED setting since disabling it serves no purpose. Resolve #3409

This commit is contained in:
Griatch 2024-01-28 14:22:55 +01:00
parent ccd384b0f3
commit e3fc5666d4
3 changed files with 7 additions and 4 deletions

View file

@ -112,6 +112,11 @@ def check_errors(settings):
if hasattr(settings, "GAME_DIRECTORY_LISTING"):
raise DeprecationWarning(game_directory_deprecation)
if hasattr(settings, "AMP_ENABLED"):
raise DeprecationWarning(
"AMP_ENABLED option is no longer supported. Remove it from your settings."
)
chan_connectinfo = settings.CHANNEL_CONNECTINFO
if chan_connectinfo is not None and not isinstance(chan_connectinfo, dict):
raise DeprecationWarning(

View file

@ -152,7 +152,6 @@ class EvenniaServerService(MultiService):
except OperationalError:
print("Server server_starting_mode couldn't be set - database not set up.")
if settings.AMP_ENABLED:
self.register_amp()
if settings.WEBSERVER_ENABLED:

View file

@ -128,7 +128,6 @@ EVENNIA_ADMIN = True
# operating between two processes on the same machine. You usually don't need to
# change this unless you cannot use the default AMP port/host for
# whatever reason.
AMP_ENABLED = True
AMP_HOST = "localhost"
AMP_PORT = 4006
AMP_INTERFACE = "127.0.0.1"