only call internal.identified when an account tag is first seen

closes #249
This commit is contained in:
jesopo 2020-02-26 10:28:36 +00:00
parent 5608c1cdc7
commit d39babf0b5

View file

@ -116,8 +116,9 @@ class Module(ModuleManager.BaseModule):
@utils.kwarg("priority", EventManager.PRIORITY_HIGH) @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 self._is_identified(event["user"]):
self._has_identified(event["server"], event["user"], account) if not account == None:
self._has_identified(event["server"], event["user"], account)
def _get_permissions(self, user): def _get_permissions(self, user):
if self._is_identified(user): if self._is_identified(user):