Fix true return when validation wanted and steam id pending

This commit is contained in:
Nicholas Hastings 2014-09-02 17:44:11 -07:00
parent e3b87a5ca4
commit eafd6626ec

View File

@ -381,13 +381,17 @@ static cell_t SteamIDToLocal(IPluginContext *pCtx, int index, AuthStringType aut
if (gamehelpers->IsLANServer())
{
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_LAN");
return 1;
}
else if (!validate)
{
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_PENDING");
return 1;
}
else
{
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_PENDING");
return 0;
}
return 1;
}
char szAuth[64];