fix problem with 'none' permission
This commit is contained in:
2
abot.py
2
abot.py
@@ -57,7 +57,7 @@ def on_chat(event):
|
||||
for answer in answers:
|
||||
for regex in answer["regex"]:
|
||||
if regex.search(message):
|
||||
if answer["hide-perm"] and not sender.hasPermission(answer["hide-perm"]):
|
||||
if not answer["hide-perm"] or not sender.hasPermission(answer["hide-perm"]):
|
||||
plugin_header(sender, "AnswerBot")
|
||||
msg(sender, answer["message"] + "\n ")
|
||||
event.setCancelled(True)
|
||||
|
||||
Reference in New Issue
Block a user