Browse Source

decode 'chat_messages' text as utf-8

pull/55/head
Rossen Georgiev 9 years ago
parent
commit
fb149fe300
  1. 2
      steam/client/builtins/user.py

2
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

Loading…
Cancel
Save