aboutsummaryrefslogtreecommitdiff
path: root/src/core_modules
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-13 19:55:00 +0000
committerGravatar jesopo2020-02-13 19:55:00 +0000
commit5c9e965d25e8eb434022862a317cc016074ebdfc (patch)
treea4af34d5dbebf6272eb86e8743bce2d6e0da7140 /src/core_modules
parentupdate !silence to use command specs (diff)
signature
labeled response raw.received should fire BEFORE line_handler's
Diffstat (limited to 'src/core_modules')
-rw-r--r--src/core_modules/ircv3_labeled_responses.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core_modules/ircv3_labeled_responses.py b/src/core_modules/ircv3_labeled_responses.py
index bfedb21e..01e8bdb8 100644
--- a/src/core_modules/ircv3_labeled_responses.py
+++ b/src/core_modules/ircv3_labeled_responses.py
@@ -1,5 +1,5 @@
import uuid
-from src import ModuleManager, utils
+from src import EventManager, ModuleManager, utils
CAP = utils.irc.Capability("labeled-response", "draft/labeled-response-0.2",
depends_on=["batch"])
@@ -38,6 +38,7 @@ class Module(ModuleManager.BaseModule):
event["events"])
@utils.hook("raw.received")
+ @utils.kwarg("priority", EventManager.PRIORITY_HIGH)
def raw_recv(self, event):
if not event["line"].command == "BATCH":
label = TAG.get_value(event["line"].tags)