From 695c7982a6f7b6ae13f7a7bfbec2d617fc7f0371 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 9 Sep 2019 18:05:10 +0100 Subject: [PATCH] add a special flag to allow commands to bypass !silence --- modules/silence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/silence.py b/modules/silence.py index 81ef68f7..4dda2894 100644 --- a/modules/silence.py +++ b/modules/silence.py @@ -29,7 +29,8 @@ class Module(ModuleManager.BaseModule): @utils.hook("preprocess.command", priority=EventManager.PRIORITY_HIGH) def preprocess_command(self, event): - if event["is_channel"]: + if event["is_channel"] and not event["hook"].get_kwarg( + "unsilence", False): silence_until = event["target"].get_setting("silence-until", None) if silence_until: if self._is_silenced(event["target"]):