From e74110c42906bf922f42ce8dac7cbd49d10e75d8 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Sun, 8 Nov 2026 08:06:50 +0100 Subject: [PATCH] Apply suggestion from @ZeldaZach Co-authored-by: Zach H --- servatrice/src/servatrice_database_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servatrice/src/servatrice_database_interface.cpp b/servatrice/src/servatrice_database_interface.cpp index e25ae5e6c..1c5b43734 100644 --- a/servatrice/src/servatrice_database_interface.cpp +++ b/servatrice/src/servatrice_database_interface.cpp @@ -2222,6 +2222,9 @@ QList Servatrice_DatabaseInterface::getUserAlts(const QStrin candidate.banCount = candidateQuery.value(6).toInt(); candidate.isActive = candidateQuery.value(7).toBool(); candidates << candidate; + if (candidates.size() >= MAX_USER_ALTS_PER_LEVEL) { + break; + } } // Resolve session-level evidence (shared IP or historic client id) for