From e11fec9ba1cd24e1bf252ea00452af3d12590f9e Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 2 Sep 2014 18:11:36 -0700 Subject: [PATCH] Rename GetClientAuthString2 to GetClientAuthId --- core/logic/smn_players.cpp | 4 ++-- plugins/include/clients.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/logic/smn_players.cpp b/core/logic/smn_players.cpp index 196b55393..7a4bf35c8 100644 --- a/core/logic/smn_players.cpp +++ b/core/logic/smn_players.cpp @@ -455,7 +455,7 @@ static cell_t sm_GetClientAuthStr(IPluginContext *pCtx, const cell_t *params) return SteamIDToLocal(pCtx, params[1], AuthStringType::Steam2, params[2], (size_t)params[3], validate); } -static cell_t sm_GetClientAuthStr2(IPluginContext *pCtx, const cell_t *params) +static cell_t sm_GetClientAuthId(IPluginContext *pCtx, const cell_t *params) { return SteamIDToLocal(pCtx, params[1], (AuthStringType)params[2], params[3], (size_t)params[4], params[5] != 0); } @@ -1646,7 +1646,7 @@ REGISTER_NATIVES(playernatives) { "CanUserTarget", CanUserTarget }, { "ChangeClientTeam", ChangeClientTeam }, { "GetClientAuthString", sm_GetClientAuthStr }, - { "GetClientAuthString2", sm_GetClientAuthStr2 }, + { "GetClientAuthId", sm_GetClientAuthId }, { "GetSteamAccountID", sm_GetSteamAccountID }, { "GetClientCount", sm_GetClientCount }, { "GetClientInfo", sm_GetClientInfo }, diff --git a/plugins/include/clients.inc b/plugins/include/clients.inc index 4de44ef97..600bf3fed 100644 --- a/plugins/include/clients.inc +++ b/plugins/include/clients.inc @@ -286,7 +286,7 @@ native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true); * @return True on success, false otherwise. * @error If the client is not connected or the index is invalid. */ -#pragma deprecated Use GetClientAuthString2 +#pragma deprecated Use GetClientAuthId native bool:GetClientAuthString(client, String:auth[], maxlen, bool:validate=true); /** @@ -302,7 +302,7 @@ native bool:GetClientAuthString(client, String:auth[], maxlen, bool:validate=tru * @return True on success, false otherwise. * @error If the client is not connected or the index is invalid. */ -native bool:GetClientAuthString2(client, AuthStringType:authType, String:auth[], maxlen, bool:validate=true); +native bool:GetClientAuthId(client, AuthStringType:authType, String:auth[], maxlen, bool:validate=true); /** * Returns the client's Steam account ID.