From b9ec8e91095a93e02c3c250238cf3b4524e6b9e0 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 5 Dec 2005 13:26:08 +0000 Subject: [PATCH] needs_highlight --> needs_visual_notification --- src/chat.py | 2 +- src/groupchat_window.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chat.py b/src/chat.py index de569462d..c96ab583d 100644 --- a/src/chat.py +++ b/src/chat.py @@ -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'): diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 49c1aee5b..338737a9c 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -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)