Skip to content

Commit

Permalink
fix: discord message buffer size (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway authored Feb 9, 2024
1 parent 085f498 commit dcaed9c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions addons/sourcemod/scripting/AntiBhopCheat_Discord.sp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
#tryinclude <sourcebanschecker>
#define REQUIRE_PLUGIN

#define WEBHOOK_MSG_MAX_SIZE 2000
#define WEBHOOK_URL_MAX_SIZE 1000
#define WEBHOOK_THREAD_NAME_MAX_SIZE 100

ConVar g_cvCountBots, g_cvWebhook, g_cvWebhookRetry, g_cvChannelType;
ConVar g_cvThreadName, g_cvThreadID, g_cvAvatar;

Expand All @@ -24,7 +20,7 @@ public Plugin myinfo =
name = "AntiBhopCheat Discord",
author = ".Rushaway",
description = "Send webhook when a bhop cheat is detected",
version = "1.0.0",
version = "1.0.1",
url = "https://github.com/srcdslab/sm-plugin-AntiBhopCheat-discord"
};

Expand Down Expand Up @@ -212,4 +208,4 @@ public void OnWebHookExecuted(HTTPResponse response, DataPack pack)
}

retries = 0;
}
}

0 comments on commit dcaed9c

Please sign in to comment.