mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-11 20:52:42 +01:00
inspircd: only read METADATA modules changes from the uplink
Closes #567.
This commit is contained in:
parent
28a62f629a
commit
84f6190478
@ -773,7 +773,9 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
||||
# Sets the services login name of the client.
|
||||
|
||||
self.call_hooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': args[-1]}])
|
||||
elif args[1] == 'modules':
|
||||
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.
|
||||
# <- :70M METADATA * modules :-m_chghost.so
|
||||
# <- :70M METADATA * modules :+m_chghost.so
|
||||
for module in args[-1].split():
|
||||
|
Loading…
Reference in New Issue
Block a user