Highlight on mention of own real JID in Groupchat

Fixes #8752
This commit is contained in:
Philipp Hörist 2017-10-07 11:10:53 +02:00
parent 4e1d296dcf
commit 6f2fbde60e
1 changed files with 2 additions and 0 deletions

View File

@ -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]