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:
@@ -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("");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user