From 10006a99868a846ac35386f68ad81c32c73d83d8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 16 Jan 2020 09:49:38 +0000 Subject: [PATCH] catching account-tag should be PRIORITY_HIGH --- src/core_modules/permissions/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core_modules/permissions/__init__.py b/src/core_modules/permissions/__init__.py index 07e301dd..0c591ebe 100644 --- a/src/core_modules/permissions/__init__.py +++ b/src/core_modules/permissions/__init__.py @@ -2,7 +2,7 @@ import base64, binascii, os import scrypt -from src import ModuleManager, utils +from src import EventManager, ModuleManager, utils HOSTMASKS_SETTING = "hostmask-account" 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"]) @utils.hook("received.message.private") @utils.hook("received.message.channel") + @utils.kwarg("priority", EventManager.PRIORITY_HIGH) def account_tag(self, event): account = ACCOUNT_TAG.get_value(event["line"].tags) if not account == None: