catching account-tag should be PRIORITY_HIGH
This commit is contained in:
parent
c180900929
commit
10006a9986
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import base64, binascii, os
|
import base64, binascii, os
|
||||||
import scrypt
|
import scrypt
|
||||||
from src import ModuleManager, utils
|
from src import EventManager, ModuleManager, utils
|
||||||
|
|
||||||
HOSTMASKS_SETTING = "hostmask-account"
|
HOSTMASKS_SETTING = "hostmask-account"
|
||||||
NO_PERMISSION = "You do not have permission to do that"
|
NO_PERMISSION = "You do not have permission to do that"
|
||||||
|
@ -122,6 +122,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
self._set_hostmask(event["server"], event["user"])
|
self._set_hostmask(event["server"], event["user"])
|
||||||
@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 account_tag(self, event):
|
def account_tag(self, event):
|
||||||
account = ACCOUNT_TAG.get_value(event["line"].tags)
|
account = ACCOUNT_TAG.get_value(event["line"].tags)
|
||||||
if not account == None:
|
if not account == None:
|
||||||
|
|
Loading…
Reference in a new issue