Skip to content

Commit

Permalink
fix: Update cached value
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Jul 7, 2024
1 parent a737834 commit 17fd2be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/sourcemod/scripting/Extended_Discord.sp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public Plugin myinfo =
name = "Extended Discord Features",
author = ".Rushaway, Dolly",
description = "Provide additonal features for Discord API",
version = "1.0",
version = "1.0.1",
url = ""
};

Expand All @@ -36,6 +36,8 @@ public void OnPluginStart()
g_cvSteamAPI = CreateConVar("discord_apikey", "", "API Web Steam. Get your own https://steamcommunity.com/dev/apikey", FCVAR_PROTECTED);
g_cvSteamAPI.AddChangeHook(ConVarChange);

g_cvSteamAPI.GetString(g_sAPIKey, sizeof(g_sAPIKey));

AutoExecConfig(true);
}

Expand Down Expand Up @@ -141,4 +143,4 @@ public int Native_GetAvatarLink(Handle plugin, int numParams)
{
int iClient = GetNativeCell(1);
return g_sClientAvatar[iClient][0];
}
}

0 comments on commit 17fd2be

Please sign in to comment.