aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-30 10:42:49 +0100
committerGravatar jesopo2019-06-30 10:42:49 +0100
commitff0e2944865fb4d4696a85e2fca8fc53739fac9e (patch)
treed6e939b3ee8db434997d6132626346c14840a7ab /modules
parentInclude `town` name, when available, in user `location` name (diff)
signature
Make relaying LOW priority, so local event is printed before relaying
Diffstat (limited to 'modules')
-rw-r--r--modules/relay.py3
1 files changed, 2 insertions, 1 deletions
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"])