From 9a6900a0ba08fe63632a0d01fd9fd0203cd79bd0 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 23 Jun 2017 11:18:41 -0400 Subject: [PATCH] Don't let bots bypass the kick queue. It's not always safe. --- core/logic/smn_players.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 674eaca9..574ec6da 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -1361,14 +1361,6 @@ static cell_t KickClient(IPluginContext *pContext, const cell_t *params) return 0; } - if (pPlayer->IsFakeClient()) - { - // Kick uses the kickid command for bots. It is already delayed - // until the next frame unless someone flushes command buffer - pPlayer->Kick(buffer); - return 1; - } - gamehelpers->AddDelayedKick(client, pPlayer->GetUserId(), buffer); return 1;