Make relaying LOW priority, so local event is printed before relaying
This commit is contained in:
parent
992f16a685
commit
ff0e294486
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
from src import ModuleManager, utils
|
from src import EventManager, ModuleManager, utils
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("new.server")
|
@utils.hook("new.server")
|
||||||
|
@ -60,6 +60,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("formatted.kick")
|
@utils.hook("formatted.kick")
|
||||||
@utils.hook("formatted.quit")
|
@utils.hook("formatted.quit")
|
||||||
@utils.hook("formatted.rename")
|
@utils.hook("formatted.rename")
|
||||||
|
@utils.kwarg("priority", EventManager.PRIORITY_LOW)
|
||||||
def formatted(self, event):
|
def formatted(self, event):
|
||||||
if event["channel"]:
|
if event["channel"]:
|
||||||
self._relay(event, event["channel"])
|
self._relay(event, event["channel"])
|
||||||
|
|
Loading…
Reference in a new issue