Skip to content

Commit

Permalink
Added more logging for #12 and fixed .smx location
Browse files Browse the repository at this point in the history
For 1.5.0 Beta 3, I forgot to put the .smx into the plugins folder, oops!
  • Loading branch information
azalty committed Nov 6, 2021
1 parent ac757ee commit 0fd834b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Binary file modified plugins/no_dupe_account.smx
Binary file not shown.
Binary file removed scripting/no_dupe_account.smx
Binary file not shown.
15 changes: 8 additions & 7 deletions scripting/no_dupe_account.sp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <steamworks>
#include <discord>

#define PLUGIN_VERSION "1.5.0 Beta 3"
#define PLUGIN_VERSION "1.5.0 Beta 4"

#define AMOUNT_METHODS 14 // total amount of methods in the config file

Expand Down Expand Up @@ -1079,7 +1079,7 @@ void OnCheckIPResponse(Handle hRequest, bool bFailure, bool bRequestSuccessful,

if (bFailure || !bRequestSuccessful || eStatusCode != k_EHTTPStatusCode200OK)
{
LogError("Check IP request failed!");
LogError("Check IP request failed! - Status Code: %i", eStatusCode);
if ((cvarVPN.IntValue == 2) && client)
{
if (!g_bClientPassedCheck[client])
Expand Down Expand Up @@ -1214,7 +1214,7 @@ void OnCheckPlaytimeResponse(Handle hRequest, bool bFailure, bool bRequestSucces

if (bFailure || !bRequestSuccessful || eStatusCode != k_EHTTPStatusCode200OK)
{
LogError("Playtime request failed!");
LogError("Playtime request failed! - Status Code: %i", eStatusCode);
if ((cvarPlaytime.IntValue > 0) && client)
{
if (!g_bClientPassedCheck[client])
Expand Down Expand Up @@ -1352,7 +1352,7 @@ void OnCheckSteamLevelResponse(Handle hRequest, bool bFailure, bool bRequestSucc

if (bFailure || !bRequestSuccessful || eStatusCode != k_EHTTPStatusCode200OK)
{
LogError("Steam Level request failed!");
LogError("Steam Level request failed! - Status Code: %i", eStatusCode);
if ((cvarSteamLevel.IntValue > 0) && client)
{
if (!g_bClientPassedCheck[client])
Expand Down Expand Up @@ -1493,7 +1493,7 @@ void OnCheckSteamAgeResponse(Handle hRequest, bool bFailure, bool bRequestSucces

if (bFailure || !bRequestSuccessful || eStatusCode != k_EHTTPStatusCode200OK)
{
LogError("Steam Age request failed!");
LogError("Steam Age request failed! - Status Code: %i", eStatusCode);
int iMode, iRequiredAge;
RetrieveSteamAgeMode(iMode, iRequiredAge);
if (!iMode && client)
Expand Down Expand Up @@ -1614,7 +1614,7 @@ void OnCheckSteamBansResponse(Handle hRequest, bool bFailure, bool bRequestSucce
{
if (bFailure || !bRequestSuccessful || eStatusCode != k_EHTTPStatusCode200OK)
{
LogError("Steam Bans request failed!");
LogError("Steam Bans request failed! - Status Code: %i", eStatusCode);
delete hRequest;
return;
}
Expand Down Expand Up @@ -1655,7 +1655,8 @@ void OnCheckSteamBansResponse(Handle hRequest, bool bFailure, bool bRequestSucce
*/
if (StrContains(sArray[1], "true") == -1)
{
LogError("Steam Bans request failed: CommunityBanned field is missing (potential Steam maintenance)!");
LogError("Steam Bans request failed: CommunityBanned field is missing (potential Steam maintenance)! - Status Code: %i", eStatusCode);
LogMessage("[DEBUG] Steam Bans request body: %s", sBody);
return;
}

Expand Down

0 comments on commit 0fd834b

Please sign in to comment.