.eat()ing privmsg/notice send should be high priority
This commit is contained in:
parent
793fc94ea3
commit
d2155eb204
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue