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

inspircd: warn that inspircd 2.2 support is experimental

This commit is contained in:
James Lu 2016-03-26 18:19:19 -07:00
parent 4a0ee6f54c
commit 662d1ce03f

View File

@ -34,6 +34,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
self.min_proto_ver = 1202
self.proto_ver = 1202
self.max_proto_ver = 1202 # Anything above should warn (not officially supported)
### Outgoing commands
@ -425,6 +426,10 @@ class InspIRCdProtocol(TS6BaseProtocol):
"At least %s (InspIRCd 2.0.x) is "
"needed. (got %s)" % (self.min_proto_ver,
protocol_version))
elif protocol_version > self.max_proto_ver:
log.warning("(%s) PyLink support for InspIRCd 2.2+ is experimental, "
"and should not be relied upon for anything major.",
self.irc.name)
# Store the max nick and channel lengths
self.irc.maxnicklen = int(caps['NICKMAX'])