From dd58dcf377870896d53e1b1c71d493bba6d42915 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 6 Jun 2019 23:50:08 -0700 Subject: [PATCH] inspircd: show a note when linking to insp3 servers using insp20 compat --- protocols/inspircd.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index ebc5454..3caca62 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -502,9 +502,14 @@ class InspIRCdProtocol(TS6BaseProtocol): "At least %s is needed. (got %s)" % (self.proto_ver, protocol_version)) elif protocol_version > self.MAX_PROTO_VER: - log.warning("(%s) PyLink support for InspIRCd > 3.0 is experimental, " + log.warning("(%s) PyLink support for InspIRCd > 3.x is experimental, " "and should not be relied upon for anything important.", self.name) + elif protocol_version >= 1205 > self.proto_ver: + log.info("(%s) PyLink 2.1 introduces native support for InspIRCd 3.0. " + "You can enable this by setting the 'target_version' option in your " + "InspIRCd server block to 'insp3'.", self.name) + log.info("(%s) Falling back to InspIRCd 2.0 (compatibility) mode.", self.name) log.debug("(%s) inspircd: got remote protocol version %s", self.name, protocol_version) if self.proto_ver >= 1205: