aboutsummaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-07-23 19:15:05 -0400
committerTest_User <hax@andrewyu.org>2024-07-23 19:15:05 -0400
commit28bc65a2ded0edc6c89c49c1919b323cc073f74f (patch)
treeb6765d57dcfc352dc2f8d89171d04a8b305d4a27 /protocols
parent59f7687ac18ec938b1f4b8749119fc4454d4d6bf (diff)
downloadhaxircd-28bc65a2ded0edc6c89c49c1919b323cc073f74f.tar.gz
haxircd-28bc65a2ded0edc6c89c49c1919b323cc073f74f.zip
Fix InspIRCd v3 PING handler
Diffstat (limited to 'protocols')
-rw-r--r--protocols/inspircd3.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/inspircd3.c b/protocols/inspircd3.c
index 347b370..bef4a80 100644
--- a/protocols/inspircd3.c
+++ b/protocols/inspircd3.c
@@ -1261,7 +1261,7 @@ int inspircd3_protocol_handle_ping(struct string source, size_t argc, struct str
return -1;
}
- if (STRING_EQ(config->sid, source) && STRING_EQ(SID, argv[1])) {
+ if (STRING_EQ(config->sid, source) && STRING_EQ(SID, argv[0])) {
struct server_info *server = get_table_index(server_list, config->sid);
if (!server->awaiting_pong) {
networks[net].send(handle, STRING(":"));
@@ -1275,10 +1275,6 @@ int inspircd3_protocol_handle_ping(struct string source, size_t argc, struct str
}
}
- struct server_info *reply = get_table_index(server_list, argv[0]);
- if (!reply || !STRING_EQ(reply->next, config->sid))
- return 0;
-
networks[net].send(handle, STRING(":"));
networks[net].send(handle, argv[0]);
networks[net].send(handle, STRING(" PONG :"));