From 2e80b223de84d93716baae2ba0ea1a0ec7070686 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 26 Sep 2019 12:14:55 +0100 Subject: allow all preprocess.command and check.command failures to have a message --- modules/silence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/silence.py') diff --git a/modules/silence.py b/modules/silence.py index f4f6b32a..d1750814 100644 --- a/modules/silence.py +++ b/modules/silence.py @@ -57,7 +57,7 @@ class Module(ModuleManager.BaseModule): silence_until = event["target"].get_setting("silence-until", None) if silence_until: if self._is_silenced(event["target"]): - return utils.consts.PERMISSION_HARD_FAIL + return utils.consts.PERMISSION_HARD_FAIL, None @utils.hook("unknown.command") @utils.kwarg("priority", EventManager.PRIORITY_HIGH) -- cgit v1.3.1-10-gc9f91