Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
changed g_hBonusRecordAnnounceDiscord to g_hRecordAnnounceDiscord
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo H committed Mar 19, 2019
1 parent a30fb69 commit 7f5ca1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions addons/sourcemod/scripting/surftimer/convars.sp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ ConVar g_hOneJumpLimit = null; // Only allows players to jump once insid
ConVar g_hServerID = null; // Sets the servers id for cross-server announcements
ConVar g_hRecordAnnounce = null; // Enable/Disable cross-server announcements
ConVar g_hRecordAnnounceDiscord = null; // Web hook link to announce records to
ConVar g_hBonusRecordAnnounceDiscord = null; // Web hook link to announce bonus records to discord
ConVar g_hReportBugsDiscord = null; // Web hook link to report bugs to discord
ConVar g_hCalladminDiscord = null; // Web hook link to allow players to call admin to discord
ConVar g_hSidewaysBlockKeys = null;
Expand Down Expand Up @@ -325,8 +324,6 @@ void CreateConVars()
// Discord
g_hRecordAnnounceDiscord = CreateConVar("ck_announce_records_discord", "", "Web hook link to announce records to discord, keep empty to disable");

g_hBonusRecordAnnounceDiscord = CreateConVar("ck_announce_bonus_records_discord", "", "Web hook link to announce bonus records to discord, keep empty to disable");

g_hReportBugsDiscord = CreateConVar("ck_report_discord", "", "Web hook link to report bugs to discord, keep empty to disable");

g_hCalladminDiscord = CreateConVar("ck_calladmin_discord", "", "Web hook link to allow players to call admin to discord, keep empty to disable");
Expand Down
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/surftimer/misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2085,7 +2085,7 @@ stock void PrintChatBonus (int client, int zGroup, int rank = 0)
if (g_bBonusSRVRecord[client])
{
char buffer[1024];
GetConVarString(g_hBonusRecordAnnounceDiscord, buffer, 1024);
GetConVarString(g_hRecordAnnounceDiscord, buffer, 1024);
if (!StrEqual(buffer, ""))
sendDiscordAnnouncementBonus(szName, g_szMapName, g_szFinalTime[client], zGroup);
}
Expand Down Expand Up @@ -4434,7 +4434,7 @@ public void sendDiscordAnnouncement(char szName[32], char szMapName[128], char s
public void sendDiscordAnnouncementBonus(char szName[32], char szMapName[128], char szTime[32], int zGroup)
{
char webhook[1024];
GetConVarString(g_hBonusRecordAnnounceDiscord, webhook, 1024);
GetConVarString(g_hRecordAnnounceDiscord, webhook, 1024);
if (StrEqual(webhook, ""))
return;

Expand Down

0 comments on commit 7f5ca1d

Please sign in to comment.