ircv3_botignore.py should use HIGH priority
This commit is contained in:
parent
b7fa8a2f52
commit
55e5693341
1 changed files with 2 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
||||||
from src import ModuleManager, utils
|
from src import EventManager, ModuleManager, utils
|
||||||
|
|
||||||
TAG = utils.irc.MessageTag(None, "inspircd.org/bot")
|
TAG = utils.irc.MessageTag(None, "inspircd.org/bot")
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("received.message.private")
|
@utils.hook("received.message.private")
|
||||||
@utils.hook("received.message.channel")
|
@utils.hook("received.message.channel")
|
||||||
|
@utils.kwarg("priority", EventManager.PRIORITY_HIGH)
|
||||||
def message(self, event):
|
def message(self, event):
|
||||||
if TAG.present(event["tags"]):
|
if TAG.present(event["tags"]):
|
||||||
event.eat()
|
event.eat()
|
||||||
|
|
Loading…
Reference in a new issue