private void StartAccountAssociationCheck(uint PlayerObject)
{
string AccountName = GetPCPlayerName(PlayerObject);
WorldManager.SignalQueryThreadAction(delegate(IALFADatabase Database)
{
Database.ACR_SQLQuery(String.Format(
"SELECT `alfa_gsids`.`uid` FROM `alfa_gsids` WHERE `gsid` = '{0}'",
Database.ACR_SQLEncodeSpecialChars(AccountName)));
//
// If the player already has an account association, then there
// is no work to be done. Otherwise, request that the player
// association GUI be opened.
//
if (Database.ACR_SQLFetch())
return;
lock (WorldManager)
{
WorldManager.EnqueueAccountAssociationToPlayer(PlayerObject,
WorldManager.Configuration.AccountAssociationSecret,
WorldManager.Configuration.AccountAssociationUrl);
}
});
}