mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 19:24:13 +01:00
inspircd: send SINFO instead of VERSION on 1205
This commit is contained in:
parent
3d69b7f4e8
commit
66485ec6a2
@ -433,6 +433,10 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
|
|
||||||
self._send_with_prefix(self.sid, 'BURST %s' % ts)
|
self._send_with_prefix(self.sid, 'BURST %s' % ts)
|
||||||
# InspIRCd sends VERSION data on link, instead of whenever requested by a client.
|
# InspIRCd sends VERSION data on link, instead of whenever requested by a client.
|
||||||
|
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, 'VERSION :%s' % self.version())
|
||||||
self._send_with_prefix(self.sid, 'ENDBURST')
|
self._send_with_prefix(self.sid, 'ENDBURST')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user