From ff55db8fa3ae1721dbcd166ed2c26407844e325e Mon Sep 17 00:00:00 2001 From: "R.K" Date: Sun, 28 Apr 2024 13:44:20 -0700 Subject: [PATCH] fix: Prevent autokick of friends and trusted (#2989) --- src/backend/looped/session/auto_kick_host.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/looped/session/auto_kick_host.cpp b/src/backend/looped/session/auto_kick_host.cpp index 08a13635..885606ed 100644 --- a/src/backend/looped/session/auto_kick_host.cpp +++ b/src/backend/looped/session/auto_kick_host.cpp @@ -12,6 +12,10 @@ namespace big if (kick_host && !bLastKickHost) { g_player_service->iterate([](auto& plyr) { + // Don't kick trusted players + if (plyr.second->is_trusted || (g.session.trust_friends && plyr.second->is_friend())) + return; + if (plyr.second->is_host()) { dynamic_cast(command::get("multikick"_J))->call(plyr.second, {});