aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-27 14:49:57 +0100
committerGravatar jesopo2019-04-27 14:49:57 +0100
commit5f4d5eb2709aa888220740b63b57d12296ce5828 (patch)
tree4c0cf9b0cd690a4dab62c9be95ad8674a250d490 /modules
parentAdd ability to ignore users per-command (diff)
signature
Use is-ignored export in sed.py to allow ignoring users from sed
Diffstat (limited to 'modules')
-rw-r--r--modules/sed.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sed.py b/modules/sed.py
index dd1b1841..e5933fd9 100644
--- a/modules/sed.py
+++ b/modules/sed.py
@@ -22,6 +22,10 @@ class Module(ModuleManager.BaseModule):
if event["action"] or not self._closest_setting(event, "sed",
False):
return
+ is_ignored_f = short_url = self.exports.get_one("is-ignored",
+ lambda _1, _2: False)
+ if is_ignored_f(event["user"], "sed"):
+ return
regex_flags = 0
flags = (sed_split[3:] or [""])[0]