move internal.identified event call to _has_identified (covers hostmasks and
nickserv)
This commit is contained in:
parent
4d93e584dc
commit
cc02595056
1 changed files with 2 additions and 2 deletions
|
@ -56,6 +56,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
def _has_identified(self, server, user, account):
|
def _has_identified(self, server, user, account):
|
||||||
user._id_override = server.get_user_id(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):
|
def _is_identified(self, user):
|
||||||
return not user._id_override == None
|
return not user._id_override == None
|
||||||
def _signout(self, user):
|
def _signout(self, user):
|
||||||
|
@ -219,8 +221,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
event["stdout"].write("Correct password, you have "
|
event["stdout"].write("Correct password, you have "
|
||||||
"been identified as %s." % account)
|
"been identified as %s." % account)
|
||||||
self.events.on("internal.identified").call(
|
|
||||||
user=event["user"])
|
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("Incorrect password for '%s'" %
|
event["stderr"].write("Incorrect password for '%s'" %
|
||||||
account)
|
account)
|
||||||
|
|
Loading…
Reference in a new issue