[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
This commit is contained in:
Lukas Brübach 2026-08-11 21:10:32 +02:00
parent b4bf871811
commit 2b63bc46a7
12 changed files with 145 additions and 0 deletions

View file

@ -0,0 +1,14 @@
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"
}