From 35c5a9f9adab04b821896978520af643ea8b697f Mon Sep 17 00:00:00 2001 From: Test_User Date: Fri, 14 Jun 2024 02:51:58 -0400 Subject: Basic channel tracking added --- protocols.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols.h') diff --git a/protocols.h b/protocols.h index c9fcc58..91b0110 100644 --- a/protocols.h +++ b/protocols.h @@ -26,6 +26,7 @@ #pragma once +#include "general_network.h" #include "server_network.h" struct protocol { @@ -41,6 +42,10 @@ struct protocol { void (*propagate_remove_user)(struct string from, struct user_info *info, struct string reason); void (*propagate_kill_user)(struct string from, struct string source, struct user_info *info, struct string reason); + void (*propagate_set_channel)(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); + void (*propagate_join_channel)(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users); + void (*propagate_part_channel)(struct string from, struct channel_info *channel, struct user_info *user, struct string reason); + void (*do_unlink)(struct string from, struct server_info *a, struct server_info *b); }; -- cgit v1.2.3