needs_highlight --> needs_visual_notification

This commit is contained in:
Nikos Kouremenos 2005-12-05 13:26:08 +00:00
parent 032627a96f
commit b9ec8e9109
2 changed files with 4 additions and 4 deletions

View File

@ -962,7 +962,7 @@ class Chat:
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'):

View File

@ -1018,7 +1018,7 @@ current room topic.') % command, room_jid)
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 @@ current room topic.') % command, room_jid)
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)