Rebase onto upstream (a4d95fd) #12

Closed
wylab wants to merge 144 commits from rebase-onto-upstream into main
Showing only changes of commit 218868d5e9 - Show all commits
+6 -2
View File
@@ -69,11 +69,15 @@ class BaseChannel(ABC):
True if allowed, False otherwise. True if allowed, False otherwise.
""" """
allow_list = getattr(self.config, "allow_from", []) allow_list = getattr(self.config, "allow_from", [])
# If no allow list, allow everyone # If no allow list, allow everyone
if not allow_list: if not allow_list:
return True return True
# Wildcard allows everyone
if "*" in allow_list:
return True
sender_str = str(sender_id) sender_str = str(sender_id)
if sender_str in allow_list: if sender_str in allow_list:
return True return True