From fb8ce61abc7e0129e2ba204ac75b37eabb7bdd49 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Fri, 8 Jan 2016 20:02:34 +0000 Subject: [PATCH] ignore ServiceMethod calls for now --- steam/core/msg.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/steam/core/msg.py b/steam/core/msg.py index 676e7a5..1910b38 100644 --- a/steam/core/msg.py +++ b/steam/core/msg.py @@ -247,9 +247,14 @@ class MsgProto(object): self.msg = msg self.header = self._header.proto - self.body = get_cmsg(msg)() + proto = get_cmsg(msg) - if data: + if msg == EMsg.ServiceMethod: + self.body = "!!NOT IMPLEMENTED!!" + else: + self.body = proto() + + if data and proto is not None: data = data[self._header._fullsize:] self.body.ParseFromString(data)