move internal.identified event call to _has_identified (covers hostmasks and

nickserv)
This commit is contained in:
jesopo 2019-12-14 20:38:31 +00:00
parent 4d93e584dc
commit cc02595056

View file

@ -56,6 +56,8 @@ class Module(ModuleManager.BaseModule):
def _has_identified(self, server, user, account):
user._id_override = server.get_user_id(account)
self.events.on("internal.identified").call(server=server, user=user,
accunt=account)
def _is_identified(self, user):
return not user._id_override == None
def _signout(self, user):
@ -219,8 +221,6 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write("Correct password, you have "
"been identified as %s." % account)
self.events.on("internal.identified").call(
user=event["user"])
else:
event["stderr"].write("Incorrect password for '%s'" %
account)