mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +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:
parent
de7533a46e
commit
7d321e2e6c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user