diff --git a/consumerntfy.py b/consumerntfy.py index 833a057..5bce54e 100644 --- a/consumerntfy.py +++ b/consumerntfy.py @@ -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