From eafd6626ec1cb3d395e84c7974ea045dd2a52d0c Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 2 Sep 2014 17:44:11 -0700 Subject: [PATCH] Fix true return when validation wanted and steam id pending --- core/logic/smn_players.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index ba42ecae..196b5539 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -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 + else if (!validate) { pCtx->StringToLocal(local_addr, bytes, "STEAM_ID_PENDING"); + return 1; + } + else + { + return 0; } - - return 1; } char szAuth[64];