From 1f45cce394a967228f5698c31059fa39d40beb86 Mon Sep 17 00:00:00 2001 From: ReneKlever Date: Mon, 24 Mar 2025 20:39:54 +0100 Subject: [PATCH] Update config_init.py Added list of nodes to enter bbs at all --- config_init.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config_init.py b/config_init.py index e8a8e7f..e4d9179 100644 --- a/config_init.py +++ b/config_init.py @@ -114,6 +114,12 @@ def initialize_config(config_file: str = None) -> dict[str, Any]: print(f"Configured to sync with the following BBS nodes: {bbs_nodes}") + allowed2bbs_nodes = config.get('allow2bbs_list', 'allowed2bbs_nodes', fallback='').split(',') + if allowed2bbs_nodes == ['']: + allowed2bbs_nodes = [] + + print(f"Nodes allowed to enter the BBS: {allowed2bbs_nodes}") + allowed_nodes = config.get('allow_list', 'allowed_nodes', fallback='').split(',') if allowed_nodes == ['']: allowed_nodes = []