Fix true return when validation wanted and steam id pending
This commit is contained in:
parent
e3b87a5ca4
commit
eafd6626ec
@ -381,13 +381,17 @@ static cell_t SteamIDToLocal(IPluginContext *pCtx, int index, AuthStringType aut
|
|||||||
if (gamehelpers->IsLANServer())
|
if (gamehelpers->IsLANServer())
|
||||||
{
|
{
|
||||||
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_LAN");
|
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_LAN");
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
else
|
else if (!validate)
|
||||||
{
|
{
|
||||||
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_PENDING");
|
pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_PENDING");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char szAuth[64];
|
char szAuth[64];
|
||||||
|
Loading…
Reference in New Issue
Block a user