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

inspircd: use clear() instead of replacing the _modsupport set

Maybe this will fix issues with _modsupport not being completely filled?
This commit is contained in:
James Lu 2017-12-27 11:48:00 -08:00
parent 7c0d279f61
commit 56fa626605

View File

@ -34,6 +34,9 @@ class InspIRCdProtocol(TS6BaseProtocol):
self.proto_ver = 1202 self.proto_ver = 1202
self.max_proto_ver = 1202 # Anything above should warn (not officially supported) self.max_proto_ver = 1202 # Anything above should warn (not officially supported)
# Track the modules supported by the uplink.
self._modsupport = set()
### Outgoing commands ### Outgoing commands
def spawn_client(self, nick, ident='null', host='null', realhost=None, modes=set(), def spawn_client(self, nick, ident='null', host='null', realhost=None, modes=set(),
@ -392,8 +395,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
"""Initializes a connection to a server.""" """Initializes a connection to a server."""
ts = self.start_ts ts = self.start_ts
# Track the modules supported by the uplink. self._modsupport.clear()
self._modsupport = set()
f = self.send f = self.send
f('CAPAB START %s' % self.proto_ver) f('CAPAB START %s' % self.proto_ver)