3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-24 03:04:05 +01:00

inspircd: send SINFO instead of VERSION on 1205

This commit is contained in:
James Lu 2019-05-02 17:42:45 -07:00
parent 3d69b7f4e8
commit 66485ec6a2

View File

@ -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