@@ -733,7 +733,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
733
733
734
734
// empty fields for spacing
735
735
JSON_Object spacerField = new JSON_Object ();
736
- spacerField .EnableOrderedKeys ();
737
736
spacerField .SetString (" name" , " " );
738
737
spacerField .SetString (" value" , " " );
739
738
spacerField .SetBool (" inline" , false );
@@ -770,7 +769,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
770
769
json_escape_string (ClName , sizeof (ClName ));
771
770
772
771
nameField = new JSON_Object ();
773
- nameField .EnableOrderedKeys ();
774
772
nameField .SetString (" name" , " Player" );
775
773
nameField .SetString (" value" , ClName );
776
774
nameField .SetBool (" inline" , true );
@@ -792,7 +790,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
792
790
}
793
791
794
792
steamIDfield = new JSON_Object ();
795
- steamIDfield .EnableOrderedKeys ();
796
793
steamIDfield .SetString (" name" , " SteamID" );
797
794
steamIDfield .SetString (" value" , steamid );
798
795
steamIDfield .SetBool (" inline" , true );
@@ -801,7 +798,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
801
798
802
799
// detection / notify fields
803
800
JSON_Object detectOrMsgfield = new JSON_Object ();
804
- detectOrMsgfield .EnableOrderedKeys ();
805
801
if (! userid )
806
802
{
807
803
detectOrMsgfield .SetString (" name" , " Message" );
@@ -823,7 +819,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
823
819
if (detections )
824
820
{
825
821
detectNumfield = new JSON_Object ();
826
- detectNumfield .EnableOrderedKeys ();
827
822
detectNumfield .SetString (" name" , " Detection #" );
828
823
detectNumfield .SetInt (" value" , detections );
829
824
detectNumfield .SetBool (" inline" , true );
@@ -835,14 +830,12 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
835
830
GetConVarString (FindConVar (" hostname" ), hostname , sizeof (hostname ));
836
831
837
832
JSON_Object hostname_field = new JSON_Object ();
838
- hostname_field .EnableOrderedKeys ();
839
833
hostname_field .SetString (" name" , " Hostname" );
840
834
hostname_field .SetString (" value" , hostname );
841
835
hostname_field .SetBool (" inline" , true );
842
836
843
837
// server IP - steam:///connect ??
844
838
JSON_Object serverip_field = new JSON_Object ();
845
- serverip_field .EnableOrderedKeys ();
846
839
serverip_field .SetString (" name" , " Server IP" );
847
840
serverip_field .SetString (" value" , hostipandport );
848
841
serverip_field .SetBool (" inline" , true );
@@ -853,14 +846,12 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
853
846
854
847
855
848
JSON_Object demoname_field = new JSON_Object ();
856
- demoname_field .EnableOrderedKeys ();
857
849
demoname_field .SetString (" name" , " Demo name" );
858
850
demoname_field .SetString (" value" , demoname );
859
851
demoname_field .SetBool (" inline" , true );
860
852
861
853
862
854
JSON_Object demotick_field = new JSON_Object ();
863
- demotick_field .EnableOrderedKeys ();
864
855
demotick_field .SetString (" name" , " Demo tick" );
865
856
demotick_field .SetInt (" value" , demotick );
866
857
demotick_field .SetBool (" inline" , true );
@@ -897,14 +888,12 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
897
888
}
898
889
899
890
JSON_Object gametime_field = new JSON_Object ();
900
- gametime_field .EnableOrderedKeys ();
901
891
gametime_field .SetString (" name" , " Approx server uptime" );
902
892
gametime_field .SetString (" value" , tickedTimeStr );
903
893
gametime_field .SetBool (" inline" , true );
904
894
905
895
906
896
JSON_Object servertick_field = new JSON_Object ();
907
- servertick_field .EnableOrderedKeys ();
908
897
servertick_field .SetString (" name" , " Server tick" );
909
898
servertick_field .SetInt (" value" , servertick );
910
899
servertick_field .SetBool (" inline" , true );
@@ -928,14 +917,12 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
928
917
929
918
930
919
JSON_Object discordtimestamp_field = new JSON_Object ();
931
- discordtimestamp_field .EnableOrderedKeys ();
932
920
discordtimestamp_field .SetString (" name" , " Discord Timestamp" );
933
921
discordtimestamp_field .SetString (" value" , discordTimestamp );
934
922
discordtimestamp_field .SetBool (" inline" , true );
935
923
936
924
937
925
JSON_Object unixtimestamp_field = new JSON_Object ();
938
- unixtimestamp_field .EnableOrderedKeys ();
939
926
unixtimestamp_field .SetString (" name" , " Unix Timestamp" );
940
927
unixtimestamp_field .SetInt (" value" , unixTimestamp );
941
928
unixtimestamp_field .SetBool (" inline" , true );
@@ -991,7 +978,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
991
978
992
979
993
980
viewangle_field = new JSON_Object ();
994
- viewangle_field .EnableOrderedKeys ();
995
981
viewangle_field .SetString (" name" , " viewangle history" );
996
982
viewangle_field .SetString (" value" , viewangleHistoryBuf );
997
983
viewangle_field .SetBool (" inline" , false );
@@ -1020,7 +1006,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1020
1006
);
1021
1007
1022
1008
clpos_field = new JSON_Object ();
1023
- clpos_field .EnableOrderedKeys ();
1024
1009
clpos_field .SetString (" name" , " eye position history" );
1025
1010
clpos_field .SetString (" value" , eyeposBuf );
1026
1011
clpos_field .SetBool (" inline" , false );
@@ -1049,7 +1034,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1049
1034
);
1050
1035
1051
1036
cmdnum_field = new JSON_Object ();
1052
- cmdnum_field .EnableOrderedKeys ();
1053
1037
cmdnum_field .SetString (" name" , " cmdnum history" );
1054
1038
cmdnum_field .SetString (" value" , cmdnumBuf );
1055
1039
cmdnum_field .SetBool (" inline" , true );
@@ -1079,7 +1063,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1079
1063
1080
1064
1081
1065
tickcount_field = new JSON_Object ();
1082
- tickcount_field .EnableOrderedKeys ();
1083
1066
tickcount_field .SetString (" name" , " tickcount history" );
1084
1067
tickcount_field .SetString (" value" , tickcountBuf );
1085
1068
tickcount_field .SetBool (" inline" , true );
@@ -1110,7 +1093,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1110
1093
1111
1094
1112
1095
buttons_field = new JSON_Object ();
1113
- buttons_field .EnableOrderedKeys ();
1114
1096
buttons_field .SetString (" name" , " buttons history" );
1115
1097
buttons_field .SetString (" value" , buttonsBuf );
1116
1098
buttons_field .SetBool (" inline" , true );
@@ -1145,7 +1127,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1145
1127
);
1146
1128
1147
1129
netinfo_field = new JSON_Object ();
1148
- netinfo_field .EnableOrderedKeys ();
1149
1130
netinfo_field .SetString (" name" , " network info" );
1150
1131
netinfo_field .SetString (" value" , netinfoBuf );
1151
1132
netinfo_field .SetBool (" inline" , false );
@@ -1192,7 +1173,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1192
1173
1193
1174
// embeds header info
1194
1175
JSON_Object embedsFields = new JSON_Object ();
1195
- embedsFields .EnableOrderedKeys ();
1196
1176
1197
1177
embedsFields .SetObject (" fields" , fieldArray );
1198
1178
char notifType [64 ];
@@ -1219,7 +1199,6 @@ void StacNotify(int userid, const char[] prefmtedstring, int detections = 0)
1219
1199
1220
1200
// root
1221
1201
JSON_Object rootEmbeds = new JSON_Object ();
1222
- rootEmbeds .EnableOrderedKeys ();
1223
1202
rootEmbeds .SetObject (" embeds" , finalArr );
1224
1203
rootEmbeds .SetString (" avatar_url" , " https://i.imgur.com/RKRaLPl.png" );
1225
1204
rootEmbeds .Encode (output , sizeof (output ));
0 commit comments