mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[Server/Client/Protocol] Let moderators clear banner cards (#7546)
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
b4e24f958a
commit
93309e01a2
12 changed files with 366 additions and 14 deletions
|
|
@ -174,6 +174,8 @@ set(PROTO_FILES
|
|||
response_report_user_info.proto
|
||||
response_moderator_last_logins.proto
|
||||
response_remove_user_avatar.proto
|
||||
response_remove_user_banner.proto
|
||||
response_clear_blacklisted_banners.proto
|
||||
response_reset_user_password.proto
|
||||
response_user_alts.proto
|
||||
response_user_sessions.proto
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ message ModeratorCommand {
|
|||
GET_MODERATOR_LAST_LOGINS = 1015;
|
||||
RESET_USER_PASSWORD = 1016;
|
||||
REMOVE_USER_AVATAR = 1017;
|
||||
REMOVE_USER_BANNER = 1018;
|
||||
CLEAR_BLACKLISTED_BANNERS = 1019;
|
||||
REPORT_LIST = 1200;
|
||||
REPORT_ASSIGN = 1201;
|
||||
REPORT_RESOLVE = 1202;
|
||||
|
|
@ -179,3 +181,16 @@ message Command_RemoveUserAvatar {
|
|||
}
|
||||
optional string user_name = 1;
|
||||
}
|
||||
|
||||
message Command_RemoveUserBanner {
|
||||
extend ModeratorCommand {
|
||||
optional Command_RemoveUserBanner ext = 1018;
|
||||
}
|
||||
optional string user_name = 1;
|
||||
}
|
||||
|
||||
message Command_ClearBlacklistedBanners {
|
||||
extend ModeratorCommand {
|
||||
optional Command_ClearBlacklistedBanners ext = 1019;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
syntax = "proto2";
|
||||
import "response.proto";
|
||||
|
||||
message Response_ClearBlacklistedBanners {
|
||||
extend Response {
|
||||
optional Response_ClearBlacklistedBanners ext = 1222;
|
||||
}
|
||||
optional uint32 cleared_count = 1 [default = 0];
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
syntax = "proto2";
|
||||
import "response.proto";
|
||||
|
||||
message Response_RemoveUserBanner {
|
||||
extend Response {
|
||||
optional Response_RemoveUserBanner ext = 1221;
|
||||
}
|
||||
optional string user_name = 1;
|
||||
// false when the user exists but had no banner card set, so nothing was cleared
|
||||
optional bool had_banner = 2 [default = true];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue