From d44039e82e5581a805b4ee0093cde4d59f789596 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 20 Aug 2021 18:42:47 +0200 Subject: [PATCH] Ignore servers in serverlist that specify an invalid player count --- src/Components/Modules/ServerList.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Components/Modules/ServerList.cpp b/src/Components/Modules/ServerList.cpp index 8ffd4861..823e326d 100644 --- a/src/Components/Modules/ServerList.cpp +++ b/src/Components/Modules/ServerList.cpp @@ -472,6 +472,11 @@ namespace Components // Remove server from queue i = ServerList::RefreshContainer.servers.erase(i); + // Servers with more than 18 players or less than 0 players are faking for sure + // So lets ignore those + if (server.clients > 18 || server.maxClients > 18 || server.clients < 0 || server.maxClients < 0) + return; + // Check if already inserted and remove auto list = ServerList::GetList(); if (!list) return;