diff --git a/core/PlayerManager.cpp b/core/PlayerManager.cpp index bb9b8367c..5c4790bde 100644 --- a/core/PlayerManager.cpp +++ b/core/PlayerManager.cpp @@ -2116,7 +2116,11 @@ void CPlayer::Kick(const char *str) else { IClient *pClient = static_cast(pNetChan->GetMsgHandler()); +#if SOURCE_ENGINE == SE_DOTA + pClient->Disconnect(str); +#else pClient->Disconnect("%s", str); +#endif } }