Skip to content

Commit

Permalink
potential fix to upstream sourcemod bad documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphonie committed May 10, 2024
1 parent c104d9f commit a673e4e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
Binary file modified plugins/stac.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion scripting/stac.sp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "6.1.5"
#define PLUGIN_VERSION "6.1.6"

#define UPDATE_URL "https://raw.githubusercontent.com/sapphonie/StAC-tf2/master/updatefile.txt"

Expand Down
12 changes: 11 additions & 1 deletion scripting/stac/stac_cvar_checks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,17 @@ public void ConVarCheck(QueryCookie cookie, int cl, ConVarQueryResult result, co
/*
cheat program only cvars
*/
if (result != ConVarQuery_NotFound && IsCheatOnlyVar(cvarName))

if
(
(
result == ConVarQuery_Okay
|| result == ConVarQuery_NotValid
|| result == ConVarQuery_Protected
)
&&
IsCheatOnlyVar(cvarName)
)
{
illegalVarsNotify(userid, cvarName);
if (stac_ban_for_misccheats.BoolValue)
Expand Down

0 comments on commit a673e4e

Please sign in to comment.