diff options
author | Test_User <hax@andrewyu.org> | 2024-06-17 22:19:12 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-06-17 22:19:12 -0400 |
commit | 27589848053910baa5394f8fdf233a7f9c07c3f8 (patch) | |
tree | 26dccff9bc67c55e8cf2cb2a5615f43db668a501 /protocols.h | |
parent | d3e2530cdaa9fb6ce0af737a7ce181a60f88cc45 (diff) | |
download | haxircd-27589848053910baa5394f8fdf233a7f9c07c3f8.tar.gz haxircd-27589848053910baa5394f8fdf233a7f9c07c3f8.zip |
Deoper support
Diffstat (limited to 'protocols.h')
-rw-r--r-- | protocols.h | 12 |
1 files changed, 6 insertions, 6 deletions
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); |