From 931bc7b9f7b7b9e205cd3aa7867366167f015a82 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Mon, 2 Dec 2024 16:08:22 -0800 Subject: [PATCH] Update bbstools.py --- modules/bbstools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/bbstools.py b/modules/bbstools.py index 3c7db3c..f03e36d 100644 --- a/modules/bbstools.py +++ b/modules/bbstools.py @@ -165,8 +165,12 @@ def bbs_delete_dm(toNode, message): def bbs_sync_posts(input, peerNode, RxNode): messageID = 0 + # check if the bbs link is enabled - if bbs_link_enabled == False or (bbs_link_enabled == True and str(RxNode) not in bbs_link_whitelsit): + if bbs_link_whitelsit is not None: + if str(RxNode) not in bbs_link_whitelsit: + return "System: BBS Link is disabled for your node." + if bbs_link_enabled == False: return "System: BBS Link is disabled for your node." # respond when another bot asks for the bbs posts to sync