3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

inspircd: minor cleanup

This commit is contained in:
James Lu 2019-05-31 19:01:25 -07:00
parent 8d2ae6af50
commit 2b04050bf5

View File

@ -934,8 +934,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
def handle_metadata(self, numeric, command, args): def handle_metadata(self, numeric, command, args):
""" """
Handles the METADATA command, used by servers to send metadata (services Handles the METADATA command, used by servers to send metadata for various objects.
login name, certfp data, etc.) for clients.
""" """
uid = args[0] uid = args[0]
@ -943,8 +942,8 @@ class InspIRCdProtocol(TS6BaseProtocol):
# <- :00A METADATA 1MLAAAJET accountname : # <- :00A METADATA 1MLAAAJET accountname :
# <- :00A METADATA 1MLAAAJET accountname :tester # <- :00A METADATA 1MLAAAJET accountname :tester
# Sets the services login name of the client. # Sets the services login name of the client.
self.call_hooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': args[-1]}]) self.call_hooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': args[-1]}])
elif args[1] == 'modules' and numeric == self.uplink: elif args[1] == 'modules' and numeric == self.uplink:
# Note: only handle METADATA from our uplink; otherwise leaf servers unloading modules # Note: only handle METADATA from our uplink; otherwise leaf servers unloading modules
# while shutting down will corrupt the state. # while shutting down will corrupt the state.