aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-09 18:05:10 +0100
committerGravatar jesopo2019-09-09 18:05:10 +0100
commit695c7982a6f7b6ae13f7a7bfbec2d617fc7f0371 (patch)
treeb3c7951e6335c17579172d517cb63243822c8505 /modules
parentDon't try to .decode non-html things, default iso-lat-1 for non-html too (diff)
signature
add a special flag to allow commands to bypass !silence
Diffstat (limited to 'modules')
-rw-r--r--modules/silence.py3
1 files changed, 2 insertions, 1 deletions
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"]):