From 66485ec6a206943829d06c2820cdb0068ff05f9e Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 2 May 2019 17:42:45 -0700 Subject: [PATCH] inspircd: send SINFO instead of VERSION on 1205 --- protocols/inspircd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/inspircd.py b/protocols/inspircd.py index 648e2a8..b54da11 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -433,7 +433,11 @@ class InspIRCdProtocol(TS6BaseProtocol): self._send_with_prefix(self.sid, 'BURST %s' % ts) # InspIRCd sends VERSION data on link, instead of whenever requested by a client. - self._send_with_prefix(self.sid, 'VERSION :%s' % self.version()) + if self.proto_ver >= 1205: + for version_type in {'version', 'fullversion', 'rawversion'}: + self._send_with_prefix(self.sid, 'SINFO %s :%s' % (version_type, self.version())) + else: + self._send_with_prefix(self.sid, 'VERSION :%s' % self.version()) self._send_with_prefix(self.sid, 'ENDBURST') # Extban definitions