Browse Source

fix serialization in ChannelEncryptRequest

pull/34/head
Rossen Georgiev 9 years ago
parent
commit
40ad901969
  1. 4
      steam/core/msg.py

4
steam/core/msg.py

@ -296,7 +296,7 @@ class ChannelEncryptRequest:
self.load(data)
def serialize(self):
return struct.pack("<II", self.protocolVersion, self.universe)
return struct.pack("<II", self.protocolVersion, self.universe) + self.challenge
def load(self, data):
(self.protocolVersion,
@ -305,7 +305,7 @@ class ChannelEncryptRequest:
self.universe = EUniverse(universe)
if len(data) >= 16:
if len(data) > 8:
self.challenge = data[8:]
def __str__(self):

Loading…
Cancel
Save