Cockatrice/libcockatrice_protocol/libcockatrice/protocol/pb/serverinfo_moderator_login.proto
Lukas Brübach 2b63bc46a7 [Protocol] Add moderation investigation commands
Adds the protocol layer for the moderation investigation suite:
- Command_GetUserSessions/GetUserAlts/GetModeratorLastLogins/ResetUserPassword/RemoveUserAvatar (1013-1017)
- Response extensions 1215-1219 with ServerInfo messages for sessions, alts, and staff logins
- last_login on Response_ReportUserInfo and warning_il on Response_WarnList

Took 2 minutes
2026-08-21 10:43:15 +02:00

11 lines
429 B
Protocol Buffer

syntax = "proto2";
/**
* The last login date of a staff member (moderator/judge/admin).
* Used by the moderation "Moderator Last Logins" tool.
*/
message ServerInfo_ModeratorLogin {
optional string user_name = 1; // staff account name
optional uint64 last_login = 2; // last known login, epoch seconds; 0 = unknown
optional uint32 user_level = 3; // ServerInfo_User::UserLevelFlag mask (moderator/judge/admin)
}