Skip to content

Commit f883397

Browse files
disable setting style cookie if style cookies are disabled (#1233)
* shavit-core.sp - disable style cookie is style cookies are disabled Edge case causing this change, but if style cookies are disabled on a server, no reason to save it.
1 parent 2726865 commit f883397

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addons/sourcemod/scripting/shavit-core.sp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,10 @@ void ChangeClientStyle(int client, int style, bool manual)
16251625
char sStyle[4];
16261626
IntToString(style, sStyle, 4);
16271627

1628-
SetClientCookie(client, gH_StyleCookie, sStyle);
1628+
if(gB_StyleCookies)
1629+
{
1630+
SetClientCookie(client, gH_StyleCookie, sStyle);
1631+
}
16291632
}
16301633

16311634
public void Player_Jump(Event event, const char[] name, bool dontBroadcast)

0 commit comments

Comments
 (0)