Skip to content
Commits on Source (2)
......@@ -1290,7 +1290,7 @@ def highlighting_for_message(self, text, tim):
sound = 'received'
# Is it a history message? Don't want sound-floods when we join.
if tim != time.localtime():
if tim != time.mktime(time.localtime()):
sound = None
return (highlight, sound)
......@@ -1320,6 +1320,8 @@ def needs_visual_notification(self, text):
"""
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]
......