From ff0e2944865fb4d4696a85e2fca8fc53739fac9e Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Jun 2019 10:42:49 +0100 Subject: [PATCH] Make relaying LOW priority, so local event is printed before relaying --- modules/relay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/relay.py b/modules/relay.py index 6fce7fc6..a0fa4fef 100644 --- a/modules/relay.py +++ b/modules/relay.py @@ -1,4 +1,4 @@ -from src import ModuleManager, utils +from src import EventManager, ModuleManager, utils class Module(ModuleManager.BaseModule): @utils.hook("new.server") @@ -60,6 +60,7 @@ class Module(ModuleManager.BaseModule): @utils.hook("formatted.kick") @utils.hook("formatted.quit") @utils.hook("formatted.rename") + @utils.kwarg("priority", EventManager.PRIORITY_LOW) def formatted(self, event): if event["channel"]: self._relay(event, event["channel"])