Minor bug fixes. Will re-release 1.2.0
This commit is contained in:
parent
2193a9ce62
commit
beefb8c73e
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue