aboutsummaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-07-24 23:48:25 -0400
committerTest_User <hax@andrewyu.org>2024-07-24 23:48:25 -0400
commitd4afb359bc2a41c16cc8ce7baac58a5fad94c468 (patch)
tree71da9038c6721ba351b33cb6098b6d310b961050 /protocols
parent86344230a6bb79b95880769fbee4d859583c9ac4 (diff)
downloadhaxircd-d4afb359bc2a41c16cc8ce7baac58a5fad94c468.tar.gz
haxircd-d4afb359bc2a41c16cc8ce7baac58a5fad94c468.zip
Toggleable IPv4 support
Diffstat (limited to 'protocols')
-rw-r--r--protocols/inspircd3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/inspircd3.c b/protocols/inspircd3.c
index c2f4952..ba93431 100644
--- a/protocols/inspircd3.c
+++ b/protocols/inspircd3.c
@@ -910,7 +910,7 @@ void inspircd3_protocol_handle_unlink_server(struct string from, struct server_i
int inspircd3_protocol_handle_new_user(struct string from, struct user_info *info) {
struct server_info *server = get_table_index(server_list, info->server);
- if (STRING_EQ(server->sid, SID) || server->protocol != INSPIRCD3_PROTOCOL) {
+ if (STRING_EQ(info->server, SID) || server->protocol != INSPIRCD3_PROTOCOL) {
info->protocol_specific[INSPIRCD3_PROTOCOL] = 0;
return 0;
}
@@ -934,7 +934,7 @@ int inspircd3_protocol_handle_rename_user(struct string from, struct user_info *
void inspircd3_protocol_handle_remove_user(struct string from, struct user_info *info, struct string reason, char propagate) {
struct server_info *server = get_table_index(server_list, info->server);
- if (STRING_EQ(server->sid, SID) || server->protocol != INSPIRCD3_PROTOCOL)
+ if (STRING_EQ(info->server, SID) || server->protocol != INSPIRCD3_PROTOCOL)
return;
struct inspircd3_protocol_specific_user *prot_info = info->protocol_specific[INSPIRCD3_PROTOCOL];