diff options
author | Test_User <hax@andrewyu.org> | 2024-07-23 19:00:54 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-07-23 19:00:54 -0400 |
commit | 59f7687ac18ec938b1f4b8749119fc4454d4d6bf (patch) | |
tree | 562df267a8d731b2e63515992487119370694945 /protocols/inspircd2.c | |
parent | 74ebc09736f85fb72a5bcdc96b93ae50cf86652d (diff) | |
download | haxircd-59f7687ac18ec938b1f4b8749119fc4454d4d6bf.tar.gz haxircd-59f7687ac18ec938b1f4b8749119fc4454d4d6bf.zip |
InspIRCd v3 support
Diffstat (limited to 'protocols/inspircd2.c')
-rw-r--r-- | protocols/inspircd2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/inspircd2.c b/protocols/inspircd2.c index 76f85eb..7f9c3f3 100644 --- a/protocols/inspircd2.c +++ b/protocols/inspircd2.c @@ -1020,6 +1020,21 @@ void inspircd2_protocol_introduce_servers_to(size_t net, void *handle) { inspircd2_protocol_introduce_servers_to_inner(net, handle, SID, info); } } + + for (size_t i = 0; i < server_list.len; i++) { + struct server_info *target = server_list.array[i].ptr; + if (target != self && target->protocol != INSPIRCD2_PROTOCOL) { + networks[net].send(handle, STRING(":")); + networks[net].send(handle, SID); + networks[net].send(handle, STRING(" SERVER ")); + networks[net].send(handle, target->name); + networks[net].send(handle, STRING(" * 0 ")); + networks[net].send(handle, target->sid); + networks[net].send(handle, STRING(" :")); + networks[net].send(handle, target->fullname); + networks[net].send(handle, STRING("\n")); + } + } } void inspircd2_protocol_introduce_user_to(size_t net, void *handle, struct user_info *user, char join_channels) { |