diff --git a/gajim/common/connection_handlers_events.py b/gajim/common/connection_handlers_events.py index e6287f40390637cc62c7fbde30a7a7d7fe13a8c3..8142094110e17e065b5f80b92d39e887438ec1fb 100644 --- a/gajim/common/connection_handlers_events.py +++ b/gajim/common/connection_handlers_events.py @@ -287,14 +287,15 @@ def handle_incoming_gc_msg_event(self, msg_obj): nick = msg_obj.properties.muc_nickname - if nick != msg_obj.gc_control.nick: - self.do_sound = True - if sound == 'received': - self.sound_event = 'muc_message_received' - elif sound == 'highlight': - self.sound_event = 'muc_message_highlight' - else: - self.do_sound = False + if nick == msg_obj.gc_control.nick: + # A message from ourself + return + + self.do_sound = True + if sound == 'received': + self.sound_event = 'muc_message_received' + elif sound == 'highlight': + self.sound_event = 'muc_message_highlight' else: self.do_sound = False