Minor bug fixes. Will re-release 1.2.0

This commit is contained in:
Ben 2025-06-30 11:08:09 -07:00
parent 2193a9ce62
commit beefb8c73e
Signed by: webmaster
GPG key ID: A5FCBAF34E6E8B50

View file

@ -36,7 +36,7 @@ class ConsumerNTFY(Plugin):
try: allowed_list = self.config["allowed_regions"][region]
except: return False
if len(allowed_list) == 0: return True
if allowed_list is None: return True # Empty list
if sender in allowed_list: return True
# Sender not allowed in region config
@ -52,7 +52,7 @@ class ConsumerNTFY(Plugin):
# Each command must have a state/territory designation and a message
if len(tokens) < 2: return []
# And we must have self.config["region_configs"]
try: trashvariable = self.config["allowed_regions"][region]
try: trashvariable = self.config["region_configs"]
except: return []
configs = [] # To be returned