labeled response raw.received should fire BEFORE line_handler's

This commit is contained in:
jesopo 2020-02-13 19:55:00 +00:00
parent 22af5fae46
commit 5c9e965d25

View file

@ -1,5 +1,5 @@
import uuid import uuid
from src import ModuleManager, utils from src import EventManager, ModuleManager, utils
CAP = utils.irc.Capability("labeled-response", "draft/labeled-response-0.2", CAP = utils.irc.Capability("labeled-response", "draft/labeled-response-0.2",
depends_on=["batch"]) depends_on=["batch"])
@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
event["events"]) event["events"])
@utils.hook("raw.received") @utils.hook("raw.received")
@utils.kwarg("priority", EventManager.PRIORITY_HIGH)
def raw_recv(self, event): def raw_recv(self, event):
if not event["line"].command == "BATCH": if not event["line"].command == "BATCH":
label = TAG.get_value(event["line"].tags) label = TAG.get_value(event["line"].tags)