3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

inspircd: only send services_login hooks if the user exists

With SASL, services_login can be called before the user is registered. We should ignore that because the actual accountname is still bursted later.
This commit is contained in:
James Lu 2016-07-08 12:08:13 -07:00
parent de7533a46e
commit 7d321e2e6c

View File

@ -740,7 +740,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
"""
uid = args[0]
if args[1] == 'accountname':
if args[1] == 'accountname' and uid in self.irc.users:
# <- :00A METADATA 1MLAAAJET accountname :
# <- :00A METADATA 1MLAAAJET accountname :tester
# Sets the services login name of the client.