aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-04 12:05:28 +0100
committerGravatar jesopo2019-10-04 12:05:28 +0100
commit843440ac973a6f75e82d53f8b187a49a3123991d (patch)
tree64ec095db02db597d2053bebee94cfe02356c9cf /modules
parentalso stop markov chain if we chose `None` (diff)
preprocess.command returns now need `action, message` returns
Diffstat (limited to 'modules')
-rw-r--r--modules/ignore.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ignore.py b/modules/ignore.py
index e66f6b26..3108ea71 100644
--- a/modules/ignore.py
+++ b/modules/ignore.py
@@ -34,13 +34,13 @@ class Module(ModuleManager.BaseModule):
@utils.hook("preprocess.command")
def preprocess_command(self, event):
if self._user_ignored(event["user"]):
- return utils.consts.PERMISSION_HARD_FAIL
+ return utils.consts.PERMISSION_HARD_FAIL, None
elif event["is_channel"] and self._user_channel_ignored(event["target"],
event["user"]):
- return utils.consts.PERMISSION_HARD_FAIL
+ return utils.consts.PERMISSION_HARD_FAIL, None
elif self._is_command_ignored(event["server"], event["user"],
event["command"]):
- return utils.consts.PERMISSION_HARD_FAIL
+ return utils.consts.PERMISSION_HARD_FAIL, None
@utils.hook("received.command.ignore", min_args=1)
def ignore(self, event):