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/inspircd2.h | |
parent | dce234bf05d69b43bf78d0347c108ae008a290be (diff) | |
download | haxircd-650bab769f7d07f8538d894a82ad092a5d345e88.tar.gz haxircd-650bab769f7d07f8538d894a82ad092a5d345e88.zip |
InspIRCd v3 support progress, still not really usable
Diffstat (limited to 'protocols/inspircd2.h')
-rw-r--r-- | protocols/inspircd2.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/protocols/inspircd2.h b/protocols/inspircd2.h index 315e012..ef13fa8 100644 --- a/protocols/inspircd2.h +++ b/protocols/inspircd2.h @@ -37,6 +37,7 @@ extern struct table inspircd2_protocol_init_commands; extern struct table inspircd2_protocol_commands; int init_inspircd2_protocol(void); +void init_inspircd2_protocol_fail(void); void * inspircd2_protocol_connection(void *type); void * inspircd2_protocol_autoconnect(void *type); @@ -61,6 +62,29 @@ void inspircd2_protocol_propagate_kick_channel(struct string from, struct string void inspircd2_protocol_propagate_privmsg(struct string from, struct string source, struct string target, struct string msg); void inspircd2_protocol_propagate_notice(struct string from, struct string source, struct string target, struct string msg); +int inspircd2_protocol_handle_new_server(struct string from, struct string attached_to, struct server_info *info); +void inspircd2_protocol_handle_unlink_server(struct string from, struct server_info *a, struct server_info *b, size_t protocol); + +int inspircd2_protocol_handle_new_user(struct string from, struct user_info *info); +int inspircd2_protocol_handle_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); +void inspircd2_protocol_handle_remove_user(struct string from, struct user_info *info, struct string reason, char propagate); +void inspircd2_protocol_handle_kill_user(struct string from, struct string source, struct user_info *info, struct string reason); +int inspircd2_protocol_handle_oper_user(struct string from, struct user_info *info, struct string type); + +int inspircd2_protocol_handle_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); +int inspircd2_protocol_handle_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); +void inspircd2_protocol_handle_part_channel(struct string from, struct channel_info *channel, struct user_info *user, struct string reason); +void inspircd2_protocol_handle_kick_channel(struct string from, struct string source, struct channel_info *channel, struct user_info *user, struct string reason); + +void inspircd2_protocol_fail_new_server(struct string from, struct string attached_to, struct server_info *info); + +void inspircd2_protocol_fail_new_user(struct string from, struct user_info *info); +void inspircd2_protocol_fail_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); +void inspircd2_protocol_fail_oper_user(struct string from, struct user_info *info, struct string type); + +void inspircd2_protocol_fail_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); +void inspircd2_protocol_fail_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); + void inspircd2_protocol_do_unlink(struct string from, struct server_info *a, struct server_info *b); void inspircd2_protocol_update_propagations_inner(struct server_info *source); |