mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
inspircd: implement spawn_server() on InspIRCd 3 (#644)
This commit is contained in:
parent
4eb0420378
commit
37822fda42
@ -403,6 +403,11 @@ class InspIRCdProtocol(TS6BaseProtocol):
|
|||||||
raise ValueError('Invalid server name %r' % name)
|
raise ValueError('Invalid server name %r' % name)
|
||||||
|
|
||||||
self.servers[sid] = Server(self, uplink, name, internal=True, desc=desc)
|
self.servers[sid] = Server(self, uplink, name, internal=True, desc=desc)
|
||||||
|
if self.proto_ver >= 1205:
|
||||||
|
# <- :3IN SERVER services.abc.local 0SV :Some server
|
||||||
|
self._send_with_prefix(uplink, 'SERVER %s %s :%s' % (name, sid, desc))
|
||||||
|
else:
|
||||||
|
# <- :00A SERVER test.server * 1 00C :test
|
||||||
self._send_with_prefix(uplink, 'SERVER %s * %s %s :%s' % (name, self.servers[sid].hopcount, sid, desc))
|
self._send_with_prefix(uplink, 'SERVER %s * %s %s :%s' % (name, self.servers[sid].hopcount, sid, desc))
|
||||||
|
|
||||||
# Endburst delay clutter
|
# Endburst delay clutter
|
||||||
|
Loading…
Reference in New Issue
Block a user