From fb149fe30014a1545b64e6449203ecd5d0358317 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Tue, 8 Nov 2016 15:58:16 +0200 Subject: [PATCH] decode 'chat_messages' text as utf-8 --- steam/client/builtins/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/client/builtins/user.py b/steam/client/builtins/user.py index 498f3ed..9a7c6dc 100644 --- a/steam/client/builtins/user.py +++ b/steam/client/builtins/user.py @@ -32,7 +32,7 @@ class User(object): def __handle_message_incoming(self, msg): if msg.body.chat_entry_type == EChatEntryType.ChatMsg: user = self.get_user(msg.body.steamid_from) - self.emit("chat_message", user, msg.body.message) + self.emit("chat_message", user, msg.body.message[:-1].decode('utf-8')) def __handle_disconnect(self): self.user = None