From 7e80a3d40b5d99321015d6860b114bfaaba2dbe4 Mon Sep 17 00:00:00 2001 From: LBLZR_ Date: Thu, 31 Aug 2017 15:41:37 +0200 Subject: [PATCH] Remove null char stripping from chat message text (#121) The strings are no longer null terminated --- 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 2f5da34..b60a744 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[:-1].decode('utf-8')) + self.emit("chat_message", user, msg.body.message.decode('utf-8')) def __handle_disconnect(self): self.user = None