From d2155eb20408dcbf4ac3cc1cdca5282a2d211cd8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 30 Jul 2019 14:40:07 +0100 Subject: [PATCH] .eat()ing privmsg/notice send should be high priority --- modules/ircv3_echo_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ircv3_echo_message.py b/modules/ircv3_echo_message.py index 276ac554..a13d079e 100644 --- a/modules/ircv3_echo_message.py +++ b/modules/ircv3_echo_message.py @@ -4,8 +4,8 @@ CAP = utils.irc.Capability("echo-message", depends_on=["labeled-response"]) @utils.export("cap", CAP) class Module(ModuleManager.BaseModule): - @utils.hook("raw.send.privmsg", priority=EventManager.PRIORITY_LOW) - @utils.hook("raw.send.notice", priority=EventManager.PRIORITY_LOW) + @utils.hook("raw.send.privmsg", priority=EventManager.PRIORITY_HIGH) + @utils.hook("raw.send.notice", priority=EventManager.PRIORITY_HIGH) def send_message(self, event): if event["server"].has_capability(CAP): event.eat()