diff options
| author | 2020-01-16 09:49:38 +0000 | |
|---|---|---|
| committer | 2020-01-16 09:50:37 +0000 | |
| commit | 10006a99868a846ac35386f68ad81c32c73d83d8 (patch) | |
| tree | 7b22332bf44f99ba416d1d707fae09e86f93bfc7 /src | |
| parent | pay attention to `account` tag on PRIVMSGs (diff) | |
| signature | ||
catching account-tag should be PRIORITY_HIGH
Diffstat (limited to 'src')
| -rw-r--r-- | src/core_modules/permissions/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |
