Merge pull request #337 from jesopo/jess/cfilter-assure
don't run filters/replaces on assured lines
This commit is contained in:
commit
81a3dec210
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("preprocess.send.privmsg")
|
@utils.hook("preprocess.send.privmsg")
|
||||||
@utils.hook("preprocess.send.notice")
|
@utils.hook("preprocess.send.notice")
|
||||||
def channel_message(self, event):
|
def channel_message(self, event):
|
||||||
|
if event["line"].assured():
|
||||||
|
# don't run filters/replaces against assured lines
|
||||||
|
return
|
||||||
|
|
||||||
message = event["line"].args[1]
|
message = event["line"].args[1]
|
||||||
original_message = message
|
original_message = message
|
||||||
message_plain = utils.irc.strip_font(message)
|
message_plain = utils.irc.strip_font(message)
|
||||||
|
|
Loading…
Reference in a new issue