From ddbcfcd7a2b61bbd282191592b815a0d212a7deb Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Mon, 17 Dec 2007 21:54:18 +0000 Subject: [PATCH] Highlight on (nick/muc_highlight_words) that contains a space too. Fixes #3624. --- src/groupchat_control.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 1d975cf9c..b71762755 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -813,6 +813,13 @@ class GroupchatControl(ChatControlBase): return False else: # Special word == word, no char after in word return True + for special_word in special_words: + if special_word.find(' ') > -1: + # There is a space in this special word, do a global search + # without splitting by words as previously + # We don't search this in all cases so we don't loose time + if text.find(special_word) > -1: + return True return False def set_subject(self, subject):