mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-29 09:22:18 -07:00
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
14 lines
648 B
Protocol Buffer
14 lines
648 B
Protocol Buffer
syntax = "proto2";
|
|
|
|
/**
|
|
* A single login session of a user on the server, as stored in the
|
|
* sessions table. Used by the moderation "Get User Sessions" tool.
|
|
*/
|
|
message ServerInfo_UserSession {
|
|
optional string user_name = 1; // account that was logged in
|
|
optional string ip_address = 2; // IP address used for the session
|
|
optional string clientid = 3; // client id used for the session
|
|
optional uint64 start_time = 4; // session start, epoch seconds
|
|
optional uint64 end_time = 5; // session end, epoch seconds; 0 = still active
|
|
optional string connection_type = 6; // "tcp" or "websocket"
|
|
}
|