summaryrefslogtreecommitdiff
path: root/abot.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-21 02:07:45 +0200
committerjomo <github@jomo.tv>2014-07-21 02:07:45 +0200
commitce8b20aacdc34dce85222fc44cb9ee81c6edcfc7 (patch)
tree9c2109a545b3920d550264874f70c8d81739f112 /abot.py
parentbefd5a17218356d332c08b445fff57abc0c40331 (diff)
fix problem with 'none' permission
Diffstat (limited to 'abot.py')
-rw-r--r--abot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/abot.py b/abot.py
index 44ec8a6..27508a3 100644
--- a/abot.py
+++ b/abot.py
@@ -3,7 +3,7 @@ from helpers import *
from re import compile as reg_compile
answers_filename = "plugins/redstoner-utils.py.dir/files/abot.json"
-answers = []
+answers = []
def load_answers():
@@ -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)