mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[Alts] Server-side search controls, IP counts, adjustable window
Plumbs the match-type chips through to the server: include_email/include_clientid/include_ip skip disabled identifier types in both matching and frontier expansion, so excluded types (e.g. throwaway domains) never enter the graph at any depth. Session lookback becomes adjustable (session_months, clamped 1-24, default 6). Each alt row carries ip_count, the distinct recent session IP count shown in a new IPs column. All proto additions are optional with old defaults, so old clients/servers interoperate.
This commit is contained in:
parent
c836d8b10d
commit
a82d8f3021
7 changed files with 142 additions and 45 deletions
|
|
@ -224,7 +224,12 @@ public:
|
|||
const QString &beforeTime = QString(),
|
||||
bool *hasMore = nullptr);
|
||||
QList<ServerInfo_UserSession> getUserSessions(const QString &userName, int limit);
|
||||
QList<ServerInfo_UserAlt> getUserAlts(const QString &userName, int depth = 1);
|
||||
QList<ServerInfo_UserAlt> getUserAlts(const QString &userName,
|
||||
int depth = 1,
|
||||
bool useEmail = true,
|
||||
bool useClientId = true,
|
||||
bool useIp = true,
|
||||
int sessionMonths = 6);
|
||||
QList<ServerInfo_ModeratorLogin> getModeratorLastLogins();
|
||||
|
||||
// Uptime snapshot as recorded by Servatrice::statusUpdate() into the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue