From 662d1ce03f8bb4b1110dab413cb13422737eeb9f Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 Mar 2016 18:19:19 -0700 Subject: [PATCH] inspircd: warn that inspircd 2.2 support is experimental --- protocols/inspircd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index ed33a2a..fcac284 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -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'])