Changeset 9166

Show
Ignore:
Timestamp:
12/17/07 22:54:18 (11 months ago)
Author:
jim++
Message:

Highlight on (nick/muc_highlight_words) that contains a space too. Fixes #3624.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/groupchat_control.py

    r9089 r9166  
    814814                                        else: # Special word == word, no char after in word 
    815815                                                return True  
     816                for special_word in special_words: 
     817                        if special_word.find(' ') > -1:  
     818                                # There is a space in this special word, do a global search 
     819                                # without splitting by words as previously 
     820                                # We don't search this in all cases so we don't loose time 
     821                                if text.find(special_word) > -1: 
     822                                        return True  
    816823                return False 
    817824