Browse Source

do not emit chat_message event when its local_echo

Fix for a bug reported in #13
pull/288/merge
Rossen 4 years ago
committed by GitHub
parent
commit
dca87e07cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      steam/client/builtins/user.py

2
steam/client/builtins/user.py

@ -38,7 +38,7 @@ class User(object):
def __handle_message_incoming2(self, msg):
# new chat
if msg.body.chat_entry_type == EChatEntryType.ChatMsg:
if msg.body.chat_entry_type == EChatEntryType.ChatMsg and not msg.body.local_echo:
user = self.get_user(msg.body.steamid_friend)
self.emit("chat_message", user, msg.body.message)

Loading…
Cancel
Save