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.max_proto_ver = 1202 # Anything above should warn (not officially supported)
# Track the modules supported by the uplink.
self._modsupport = set()
### Outgoing commands
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."""
ts = self.start_ts
# Track the modules supported by the uplink.
self._modsupport = set()
self._modsupport.clear()
f = self.send
f('CAPAB START %s' % self.proto_ver)