diff --git a/core/CPlayerManager.cpp b/core/CPlayerManager.cpp index 91c74fb2..34b16afe 100644 --- a/core/CPlayerManager.cpp +++ b/core/CPlayerManager.cpp @@ -195,10 +195,11 @@ bool CPlayerManager::OnClientConnect(edict_t *pEntity, const char *pszName, cons { m_AuthQueue[++m_AuthQueue[0]] = client; g_SourceMod.SetAuthChecking(true); + } else { + RETURN_META_VALUE(MRES_SUPERCEDE, false); } - //:todo: this must meta return - return (res) ? true : false; + return true; } bool CPlayerManager::OnClientConnect_Post(edict_t *pEntity, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen) @@ -257,11 +258,6 @@ void CPlayerManager::OnClientPutInServer(edict_t *pEntity, const char *playernam m_clputinserver->Execute(&res, NULL); } -void CPlayerManager::OnClientAuthorized() -{ - //:TODO: -} - void CPlayerManager::OnClientDisconnect(edict_t *pEntity) { cell_t res; diff --git a/core/CPlayerManager.h b/core/CPlayerManager.h index a621de88..afdbd884 100644 --- a/core/CPlayerManager.h +++ b/core/CPlayerManager.h @@ -82,7 +82,6 @@ public: void OnClientPutInServer(edict_t *pEntity, char const *playername); void OnClientDisconnect(edict_t *pEntity); void OnClientDisconnect_Post(edict_t *pEntity); - void OnClientAuthorized(); //:TODO: any args needed? void OnClientCommand(edict_t *pEntity); void OnClientSettingsChanged(edict_t *pEntity); public: //IPlayerManager