From 6f2fbde60ef48e23c3c2da643df86a222d32b3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 7 Oct 2017 11:10:53 +0200 Subject: [PATCH] Highlight on mention of own real JID in Groupchat Fixes #8752 --- gajim/groupchat_control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index dedd459be..d7aa1d23f 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -1320,6 +1320,8 @@ class GroupchatControl(ChatControlBase): """ special_words = app.config.get('muc_highlight_words').split(';') special_words.append(self.nick) + con = app.connections[self.account] + special_words.append(con.get_own_jid().getStripped()) # Strip empties: ''.split(';') == [''] and would highlight everything. # Also lowercase everything for case insensitive compare. special_words = [word.lower() for word in special_words if word]