mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
ServerInfo_UserAlt gains match_reason, depth, and shared_count so moderators can see why an account was flagged and how far it sits from the investigated user. Command_GetUserAlts gains a depth parameter (default 1) for transitive alt-of-alt searches. No behavior change: server still answers depth 1 and leaves the new fields empty until the follow-up server/client layers land.
20 lines
1.1 KiB
Protocol Buffer
20 lines
1.1 KiB
Protocol Buffer
syntax = "proto2";
|
|
|
|
/**
|
|
* An account that shares an IP address, client id or eMail address with
|
|
* the account being investigated. Used by the moderation "Get User Alts" tool.
|
|
*/
|
|
message ServerInfo_UserAlt {
|
|
optional string user_name = 1; // account name
|
|
optional string email = 2; // registration eMail
|
|
optional string clientid = 3; // client id
|
|
optional uint64 registration_time = 4; // account registration, epoch seconds
|
|
optional uint64 last_login = 5; // last known login, epoch seconds; 0 = unknown
|
|
optional uint32 warn_count = 6; // number of warnings on record
|
|
optional uint32 ban_count = 7; // number of bans on record
|
|
optional bool is_active = 8; // account is not deactivated/banned
|
|
optional string match_reason = 9; // why flagged, e.g. "email", "clientid:abc", "ip:1.2.3.4"; empty = seed/legacy
|
|
optional uint32 depth = 10; // BFS distance from investigated account; 1 = direct, 2+ = alt-of-alt
|
|
optional uint32 shared_count =
|
|
11; // distinct users sharing the matched identifier; high values suggest VPN/shared network
|
|
}
|