From f1d206b85bd63d59c13fc9f12e2446fe90c9c79f Mon Sep 17 00:00:00 2001 From: Test_User Date: Wed, 24 Jul 2024 05:20:35 -0400 Subject: Fix some bugs --- protocols/inspircd4.c | 4 ++-- server_network.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/inspircd4.c b/protocols/inspircd4.c index d62e58b..24a2c37 100644 --- a/protocols/inspircd4.c +++ b/protocols/inspircd4.c @@ -574,14 +574,14 @@ void inspircd4_protocol_propagate_new_server(struct string from, struct string a } // [:source] SQUIT [?] -void inspircd4_protocol_propagate_remove_server(struct string from, struct server_info *a, struct server_info *b, size_t protocol) { +void inspircd4_protocol_propagate_remove_server(struct string from, struct server_info *server, struct string reason) { if (server->protocol == INSPIRCD4_PROTOCOL) return; inspircd4_protocol_propagate(from, STRING(":")); inspircd4_protocol_propagate(from, SID); inspircd4_protocol_propagate(from, STRING(" SQUIT ")); - inspircd4_protocol_propagate(from, target->sid); + inspircd4_protocol_propagate(from, server->sid); inspircd4_protocol_propagate(from, STRING(" :")); if (reason.len != 0) inspircd4_protocol_propagate(from, reason); diff --git a/server_network.c b/server_network.c index 845794a..5746526 100644 --- a/server_network.c +++ b/server_network.c @@ -124,7 +124,7 @@ int start_server_network_threads(size_t net) { if (!type) return 1; type->net_type = net; - type->protocol = INSPIRCD2_PROTOCOL; + type->protocol = i; type->family = AF_INET; type->is_incoming = 1; if (pthread_create(&trash, &pthread_attr, server_accept_thread, type) != 0) { @@ -137,7 +137,7 @@ int start_server_network_threads(size_t net) { if (!type) return 1; type->net_type = net; - type->protocol = INSPIRCD2_PROTOCOL; + type->protocol = i; type->family = AF_INET6; type->is_incoming = 1; if (pthread_create(&trash, &pthread_attr, server_accept_thread, type) != 0) { -- cgit v1.2.3