aboutsummaryrefslogtreecommitdiff
path: root/protocols.h
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-07-24 04:34:17 -0400
committerTest_User <hax@andrewyu.org>2024-07-24 04:34:29 -0400
commitf097bc9a2db4ac103b20f4680722dc7d46fad7b3 (patch)
treee84e4093394db899a165796765fc11076564be7f /protocols.h
parentba9b6325705e828c29c8e433beba5ad3ff5bb639 (diff)
downloadhaxircd-f097bc9a2db4ac103b20f4680722dc7d46fad7b3.tar.gz
haxircd-f097bc9a2db4ac103b20f4680722dc7d46fad7b3.zip
Fix cross-protocol netsplit propagations
Diffstat (limited to 'protocols.h')
-rw-r--r--protocols.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols.h b/protocols.h
index 21a9d03..c72fb93 100644
--- a/protocols.h
+++ b/protocols.h
@@ -46,6 +46,7 @@ struct protocol {
void (*propagate)(struct string from, struct string msg);
void (*propagate_new_server)(struct string from, struct string attached_to, struct server_info *info);
+ void (*propagate_remove_server)(struct string from, struct server_info *server, struct string reason);
void (*propagate_unlink_server)(struct string from, struct server_info *a, struct server_info *b, size_t protocol);
void (*propagate_new_user)(struct string from, struct user_info *info);
@@ -106,6 +107,7 @@ int protocols_init(void);
void protocols_update_propagations(void);
void protocols_propagate_new_server(struct string from, struct string attached_to, struct server_info *info);
+void protocols_propagate_remove_server(struct string from, struct server_info *server, struct string reason);
void protocols_propagate_unlink_server(struct string from, struct server_info *a, struct server_info *b, size_t protocol);
void protocols_propagate_new_user(struct string from, struct user_info *info);