Skip to content
Snippets Groups Projects
Commit b9ec8e91 authored by nkour's avatar nkour
Browse files

needs_highlight --> needs_visual_notification

parent 032627a9
No related branches found
No related tags found
No related merge requests found
......@@ -962,7 +962,7 @@ def print_conversation_line(self, text, jid, kind, name, tim,
not self.window.is_active() or \
not end) and kind in ('incoming', 'incoming_queue'):
if self.widget_name == 'groupchat_window':
if not self.needs_highlight(text, self.nicks[jid]):
if not self.needs_visual_notification(text, self.nicks[jid]):
# Do not notify us for gc messages that are not for us
urgent = False
if not gajim.config.get('notify_on_all_muc_messages'):
......
......@@ -1018,7 +1018,7 @@ def highlighting_for_message(self, text, nick, tim):
sound = 'received'
# Are any of the defined highlighting words in the text?
if self.needs_highlight(text, nick):
if self.needs_visual_notification(text, nick):
highlight = True
if gajim.config.get_per('soundevents', 'muc_message_highlight',
'enabled'):
......@@ -1030,9 +1030,9 @@ def highlighting_for_message(self, text, nick, tim):
return (highlight, sound)
def needs_highlight(self, text, nick):
def needs_visual_notification(self, text, nick):
'''checks text to see whether any of the words in (muc_highlight_words
and nick) appear'''
and nick) appear.'''
special_words = gajim.config.get('muc_highlight_words').split(';')
special_words.append(nick)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment