fixed amb1305 by making OnClientPostAdminCheck() always occur after OnClientPutInServer(). this is now GUARANTEED. it was undefined before, however the usual case was opposite. if plugins were relying on this, they were written poorly and shouldn't have worked in the first place, especially with the threaded SQL plugin.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401819
This commit is contained in:
David Anderson
2007-12-22 08:57:08 +00:00
parent ad5ef39cb4
commit a079a87f68
2 changed files with 29 additions and 12 deletions
+7 -5
View File
@@ -489,6 +489,11 @@ void PlayerManager::OnClientPutInServer(edict_t *pEntity, const char *playername
m_clputinserver->PushCell(client);
m_clputinserver->Execute(&res, NULL);
if (m_Players[client].IsAuthorized())
{
m_Players[client].DoPostConnectAuthorization();
}
}
void PlayerManager::OnSourceModLevelEnd()
@@ -1144,13 +1149,10 @@ void CPlayer::Connect()
{
const char *pass = engine->GetClientConVarValue(client, var);
m_LastPassword.assign(pass ? pass : "");
} else {
m_LastPassword.assign("");
}
if (m_IsAuthorized)
else
{
DoPostConnectAuthorization();
m_LastPassword.assign("");
}
}