From 2b04050bf5857670638a4ff1093b336679b982fe Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 31 May 2019 19:01:25 -0700 Subject: [PATCH] inspircd: minor cleanup --- protocols/inspircd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 96907e1..ebc5454 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -934,8 +934,7 @@ class InspIRCdProtocol(TS6BaseProtocol): def handle_metadata(self, numeric, command, args): """ - Handles the METADATA command, used by servers to send metadata (services - login name, certfp data, etc.) for clients. + Handles the METADATA command, used by servers to send metadata for various objects. """ uid = args[0] @@ -943,8 +942,8 @@ class InspIRCdProtocol(TS6BaseProtocol): # <- :00A METADATA 1MLAAAJET accountname : # <- :00A METADATA 1MLAAAJET accountname :tester # Sets the services login name of the client. - self.call_hooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': args[-1]}]) + elif args[1] == 'modules' and numeric == self.uplink: # Note: only handle METADATA from our uplink; otherwise leaf servers unloading modules # while shutting down will corrupt the state.