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,6 +116,7 @@ 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 self._is_identified(event["user"]):
if not account == None: if not account == None:
self._has_identified(event["server"], event["user"], account) self._has_identified(event["server"], event["user"], account)