Merge pull request #337 from jesopo/jess/cfilter-assure

don't run filters/replaces on assured lines
This commit is contained in:
David Schultz 2022-02-13 16:43:51 -06:00 committed by GitHub
commit 81a3dec210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,10 @@ class Module(ModuleManager.BaseModule):
@utils.hook("preprocess.send.privmsg")
@utils.hook("preprocess.send.notice")
def channel_message(self, event):
if event["line"].assured():
# don't run filters/replaces against assured lines
return
message = event["line"].args[1]
original_message = message
message_plain = utils.irc.strip_font(message)