Use is-ignored export in sed.py to allow ignoring users from sed
This commit is contained in:
parent
df39570d4a
commit
5f4d5eb270
1 changed files with 4 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue