From 27589848053910baa5394f8fdf233a7f9c07c3f8 Mon Sep 17 00:00:00 2001 From: Test_User Date: Mon, 17 Jun 2024 22:19:12 -0400 Subject: Deoper support --- protocols.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols.h') diff --git a/protocols.h b/protocols.h index 8ecf232..7f84e63 100644 --- a/protocols.h +++ b/protocols.h @@ -50,7 +50,7 @@ struct protocol { void (*propagate_rename_user)(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); 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_oper_user)(struct string from, struct user_info *info, struct string type); + void (*propagate_oper_user)(struct string from, struct user_info *info, struct string type, 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); @@ -68,7 +68,7 @@ struct protocol { int (*handle_rename_user)(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); void (*handle_remove_user)(struct string from, struct user_info *info, struct string reason, char propagate); void (*handle_kill_user)(struct string from, struct string source, struct user_info *info, struct string reason); - int (*handle_oper_user)(struct string from, struct user_info *info, struct string type); + int (*handle_oper_user)(struct string from, struct user_info *info, struct string type, struct string reason); int (*handle_set_channel)(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); int (*handle_join_channel)(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); @@ -81,7 +81,7 @@ struct protocol { void (*fail_new_user)(struct string from, struct user_info *info); void (*fail_rename_user)(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); - void (*fail_oper_user)(struct string from, struct user_info *info, struct string type); + void (*fail_oper_user)(struct string from, struct user_info *info, struct string type, struct string source); void (*fail_set_channel)(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); void (*fail_join_channel)(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); @@ -101,7 +101,7 @@ void protocols_propagate_new_user(struct string from, struct user_info *info); void protocols_propagate_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); void protocols_propagate_remove_user(struct string from, struct user_info *info, struct string reason); void protocols_propagate_kill_user(struct string from, struct string source, struct user_info *info, struct string reason); -void protocols_propagate_oper_user(struct string from, struct user_info *info, struct string type); +void protocols_propagate_oper_user(struct string from, struct user_info *info, struct string type, struct string source); void protocols_propagate_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); void protocols_propagate_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); @@ -118,7 +118,7 @@ int protocols_handle_new_user(struct string from, struct user_info *info); int protocols_handle_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); void protocols_handle_remove_user(struct string from, struct user_info *info, struct string reason, char propagate); void protocols_handle_kill_user(struct string from, struct string source, struct user_info *info, struct string reason); -int protocols_handle_oper_user(struct string from, struct user_info *info, struct string type); +int protocols_handle_oper_user(struct string from, struct user_info *info, struct string type, struct string source); int protocols_handle_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); int protocols_handle_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); @@ -129,7 +129,7 @@ void protocols_fail_new_server(struct string from, struct string attached_to, st void protocols_fail_new_user(struct string from, struct user_info *info); void protocols_fail_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str); -void protocols_fail_oper_user(struct string from, struct user_info *info, struct string type); +void protocols_fail_oper_user(struct string from, struct user_info *info, struct string type, struct string source); void protocols_fail_set_channel(struct string from, struct channel_info *channel, char is_new_channel, size_t user_count, struct user_info **users); void protocols_fail_join_channel(struct string from, struct channel_info *channel, size_t user_count, struct user_info **users, char propagate); -- cgit v1.2.3