Author: jim++ Date: 2007-12-17 22:54:18 +0100 (Mon, 17 Dec 2007) New Revision: 9166
Modified: trunk/src/groupchat_control.py Log: Highlight on (nick/muc_highlight_words) that contains a space too. Fixes #3624.
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2007-12-17 20:15:06 UTC (rev 9165) +++ trunk/src/groupchat_control.py 2007-12-17 21:54:18 UTC (rev 9166) @@ -813,6 +813,13 @@ 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):