.eat()ing privmsg/notice send should be high priority

This commit is contained in:
jesopo 2019-07-30 14:40:07 +01:00
parent 793fc94ea3
commit d2155eb204

View file

@ -4,8 +4,8 @@ CAP = utils.irc.Capability("echo-message", depends_on=["labeled-response"])
@utils.export("cap", CAP) @utils.export("cap", CAP)
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("raw.send.privmsg", priority=EventManager.PRIORITY_LOW) @utils.hook("raw.send.privmsg", priority=EventManager.PRIORITY_HIGH)
@utils.hook("raw.send.notice", priority=EventManager.PRIORITY_LOW) @utils.hook("raw.send.notice", priority=EventManager.PRIORITY_HIGH)
def send_message(self, event): def send_message(self, event):
if event["server"].has_capability(CAP): if event["server"].has_capability(CAP):
event.eat() event.eat()