From ab2bd2aa02a39cfbd7d14f30ac02fc7528216a26 Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 18 Jul 2020 10:17:52 +0800 Subject: [PATCH] Hide possible non-official kart from distro in online --- src/network/protocols/server_lobby.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network/protocols/server_lobby.cpp b/src/network/protocols/server_lobby.cpp index 89aabf047..7222f97dc 100644 --- a/src/network/protocols/server_lobby.cpp +++ b/src/network/protocols/server_lobby.cpp @@ -186,6 +186,10 @@ ServerLobby::ServerLobby() : LobbyProtocol() for (int kart : all_k) { const KartProperties* kp = kart_properties_manager->getKartById(kart); + // Some distro put kart itself, ignore it online for the rest of stk + // user + if (kp->getIdent() == "geeko") + continue; if (!kp->isAddon()) m_official_kts.first.insert(kp->getIdent()); }