diff options
author | Test_User <hax@andrewyu.org> | 2024-06-17 03:17:21 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-17 03:17:58 -0400 |
commit | 650bab769f7d07f8538d894a82ad092a5d345e88 (patch) | |
tree | b09c6b9a4284e00b483ceebfd6bf621a48b18856 /protocols/inspircd3.h | |
parent | dce234bf05d69b43bf78d0347c108ae008a290be (diff) | |
download | haxircd-650bab769f7d07f8538d894a82ad092a5d345e88.tar.gz haxircd-650bab769f7d07f8538d894a82ad092a5d345e88.zip |
InspIRCd v3 support progress, still not really usable
Diffstat (limited to 'protocols/inspircd3.h')
-rw-r--r-- | protocols/inspircd3.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/protocols/inspircd3.h b/protocols/inspircd3.h index 060e85d..e5a45ba 100644 --- a/protocols/inspircd3.h +++ b/protocols/inspircd3.h @@ -41,6 +41,7 @@ extern struct table inspircd3_protocol_init_commands; extern struct table inspircd3_protocol_commands; int init_inspircd3_protocol(void); +void init_inspircd3_protocol_fail(void); void * inspircd3_protocol_connection(void *type); void * inspircd3_protocol_autoconnect(void *type); @@ -65,6 +66,29 @@ void inspircd3_protocol_propagate_kick_channel(struct string from, struct string void inspircd3_protocol_propagate_privmsg(struct string from, struct string source, struct string target, struct string msg); void inspircd3_protocol_propagate_notice(struct string from, struct string source, struct string target, struct string msg); +int inspircd3_protocol_handle_new_server(struct string from, struct string attached_to, struct server_info *info); +void inspircd3_protocol_handle_unlink_server(struct string from, struct server_info *a, struct server_info *b, size_t protocol); + +int inspircd3_protocol_handle_new_user(struct string from, struct user_info *info); +int inspircd3_protocol_handle_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); +void inspircd3_protocol_handle_remove_user(struct string from, struct user_info *info, struct string reason, char propagate); +void inspircd3_protocol_handle_kill_user(struct string from, struct string source, struct user_info *info, struct string reason); +int inspircd3_protocol_handle_oper_user(struct string from, struct user_info *info, struct string type); + +int inspircd3_protocol_handle_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); +int inspircd3_protocol_handle_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); +void inspircd3_protocol_handle_part_channel(struct string from, struct channel_info *channel, struct user_info *user, struct string reason); +void inspircd3_protocol_handle_kick_channel(struct string from, struct string source, struct channel_info *channel, struct user_info *user, struct string reason); + +void inspircd3_protocol_fail_new_server(struct string from, struct string attached_to, struct server_info *info); + +void inspircd3_protocol_fail_new_user(struct string from, struct user_info *info); +void inspircd3_protocol_fail_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); +void inspircd3_protocol_fail_oper_user(struct string from, struct user_info *info, struct string type); + +void inspircd3_protocol_fail_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); +void inspircd3_protocol_fail_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); + void inspircd3_protocol_do_unlink(struct string from, struct server_info *a, struct server_info *b); void inspircd3_protocol_update_propagations_inner(struct server_info *source); |