Browse Source

Decode chatRoomName, add memberList to __str__

pull/55/head
nukeop 8 years ago
parent
commit
652a646951
  1. 5
      steam/core/msg/structs.py

5
steam/core/msg/structs.py

@ -333,7 +333,7 @@ class ClientChatEnter(StructMessage):
(self.steamIdChat, self.steamIdFriend, self.chatRoomType, self.steamIdOwner,
self.steamIdClan, self.chatFlags, self.enterResponse, self.numMembers
) = buf.unpack("<QQIQQ?II")
self.chatRoomName = buf.read_cstring()
self.chatRoomName = buf.read_cstring().decode('utf-8')
for _ in range(self.numMembers):
self.memberList.append(vdf.binary_loads(buf.read(64))['MessageObject'])
@ -349,5 +349,6 @@ class ClientChatEnter(StructMessage):
"chatFlags: %r" % self.chatFlags,
"enterResponse: %r" % self.enterResponse,
"numMembers: %r" % self.numMembers,
"chatRoomName: %s" % self.chatRoomName
"chatRoomName: %s" % self.chatRoomName,
"memberList: {}".format(self.memberList)
])

Loading…
Cancel
Save