From 5a8f3f772cfb287fbce5c2f41ce8f447a46c12bc Mon Sep 17 00:00:00 2001 From: wylab Date: Fri, 13 Feb 2026 15:11:13 +0100 Subject: [PATCH] Support wildcard "*" in allowFrom channel config Allow "*" in the allowFrom list to explicitly permit all senders, as an alternative to the empty-list-means-allow-all behavior. Co-Authored-By: Claude Opus 4.6 --- nanobot/channels/base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nanobot/channels/base.py b/nanobot/channels/base.py index 30fcd1a..ae4ab04 100644 --- a/nanobot/channels/base.py +++ b/nanobot/channels/base.py @@ -69,11 +69,15 @@ class BaseChannel(ABC): True if allowed, False otherwise. """ allow_list = getattr(self.config, "allow_from", []) - + # If no allow list, allow everyone if not allow_list: return True - + + # Wildcard allows everyone + if "*" in allow_list: + return True + sender_str = str(sender_id) if sender_str in allow_list: return True