diff options
author | Test_User <hax@andrewyu.org> | 2024-07-18 20:12:29 -0400 |
---|---|---|
committer | Test_User <hax@andrewyu.org> | 2024-07-18 20:32:10 -0400 |
commit | e755e8b341eea1b37ef82584cd65a05edf8fdbaa (patch) | |
tree | 63862f2609e7470ec3cb432b416626b90fe6f3f8 /protocols.c | |
parent | 925da4ee0c7364900e67c1c6ce4a1323166d5198 (diff) | |
download | haxircd-e755e8b341eea1b37ef82584cd65a05edf8fdbaa.tar.gz haxircd-e755e8b341eea1b37ef82584cd65a05edf8fdbaa.zip |
Partial nickname enforcement implemented
Diffstat (limited to 'protocols.c')
-rw-r--r-- | protocols.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols.c b/protocols.c index d4a82db..56eecc0 100644 --- a/protocols.c +++ b/protocols.c @@ -223,11 +223,11 @@ 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_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str, char forced, char immediate) { for (size_t i = 0; i < NUM_PROTOCOLS; i++) { if (!active_protocols[i]) continue; - protocols[i].propagate_rename_user(from, info, nick, timestamp, timestamp_str); + protocols[i].propagate_rename_user(from, info, nick, timestamp, timestamp_str, forced, immediate); } } @@ -371,12 +371,12 @@ int protocols_handle_new_user(struct string from, struct user_info *info) { return 1; } -int protocols_handle_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str) { +int protocols_handle_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str, char forced, char immediate) { size_t i; for (i = 0; i < NUM_PROTOCOLS; i++) { if (!active_protocols[i]) continue; - if (protocols[i].handle_rename_user(from, info, nick, timestamp, timestamp_str) != 0) + if (protocols[i].handle_rename_user(from, info, nick, timestamp, timestamp_str, forced, immediate) != 0) goto protocols_handle_rename_user_fail; } @@ -387,7 +387,7 @@ int protocols_handle_rename_user(struct string from, struct user_info *info, str i--; if (!active_protocols[i]) continue; - protocols[i].fail_rename_user(from, info, nick, timestamp, timestamp_str); + protocols[i].fail_rename_user(from, info, nick, timestamp, timestamp_str, forced, immediate); } return 1; @@ -551,11 +551,11 @@ 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_rename_user(struct string from, struct user_info *info, struct string nick, size_t timestamp, struct string timestamp_str, char forced, char immediate) { for (size_t i = 0; i < NUM_PROTOCOLS; i++) { if (!active_protocols[i]) continue; - protocols[i].fail_rename_user(from, info, nick, timestamp, timestamp_str); + protocols[i].fail_rename_user(from, info, nick, timestamp, timestamp_str, forced, immediate); } } |