steamutils 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SteamClient.js +9 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -89,7 +89,7 @@ function SteamClient({
|
|
89
89
|
cookie,
|
90
90
|
}) {
|
91
91
|
const steamClient = new SteamUser()
|
92
|
-
let prime =
|
92
|
+
let prime = null
|
93
93
|
let gamename = null;
|
94
94
|
|
95
95
|
const events = {
|
@@ -265,6 +265,7 @@ function SteamClient({
|
|
265
265
|
break
|
266
266
|
}
|
267
267
|
case Protos.csgo.EGCBaseClientMsg.k_EMsgGCClientWelcome: {
|
268
|
+
prime = false
|
268
269
|
const CMsgClientWelcome = protoDecode(Protos.csgo.CMsgClientWelcome, payload);
|
269
270
|
for (const outofdate_cache of CMsgClientWelcome.outofdate_subscribed_caches) {
|
270
271
|
for (const cache_object of outofdate_cache.objects) {
|
@@ -670,6 +671,13 @@ function SteamClient({
|
|
670
671
|
|
671
672
|
|
672
673
|
function partyRegister() {
|
674
|
+
_partyRegister(prime)
|
675
|
+
if (prime === null) {
|
676
|
+
_partyRegister(true)
|
677
|
+
}
|
678
|
+
}
|
679
|
+
|
680
|
+
function _partyRegister(prime) {
|
673
681
|
console.log("partyRegister", getAccountInfoName(), prime);
|
674
682
|
steamClient.sendToGC(730, Protos.csgo.ECsgoGCMsg.k_EMsgGCCStrike15_v2_Party_Register, {}, protoEncode(Protos.csgo.CMsgGCCStrike15_v2_Party_Register, {
|
675
683
|
// id : 0,
|