Make DEFAULT_CHANNELS auto-recreate missing channels. Add new CHANNEL_MUDINFO setting.

This commit is contained in:
Griatch 2019-09-08 00:09:00 +02:00
parent dd8b3c1ba2
commit c520ef86c9
6 changed files with 65 additions and 19 deletions

View file

@ -76,6 +76,12 @@ def check_errors(settings):
if hasattr(settings, "GAME_DIRECTORY_LISTING"):
raise DeprecationWarning(game_directory_deprecation)
chan_connectinfo = settings.CHANNEL_CONNECTINFO
if chan_connectinfo is not None and not isinstance(chan_connectinfo, dict):
raise DeprecationWarning("settings.CHANNEL_CONNECTINFO has changed. It "
"must now be either None or a dict "
"specifying the properties of the channel to create.")
def check_warnings(settings):
"""