From bf0354dbb96cc57ff41b87eebb23b6e1947d718b Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Fri, 4 Jul 2008 19:04:33 +0000 Subject: [PATCH] fixed amb1801, IsFakeClient() wasn't working for TF2 causing false results and crashes --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402341 --- core/PlayerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index 10e30b78..85b5937e 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -1335,7 +1335,7 @@ IPlayerInfo *CPlayer::GetPlayerInfo() bool CPlayer::IsFakeClient() { - return (strcmp(m_AuthID.c_str(), "BOT") == 0); + return (strncasecmp(m_AuthID.c_str(), "BOT", 3) == 0); } void CPlayer::SetAdminId(AdminId id, bool temporary)