Highlight on (nick/muc_highlight_words) that contains a space too. Fixes #3624.
This commit is contained in:
parent
c53050c0a4
commit
ddbcfcd7a2
1 changed files with 7 additions and 0 deletions
|
@ -813,6 +813,13 @@ class GroupchatControl(ChatControlBase):
|
||||||
return False
|
return False
|
||||||
else: # Special word == word, no char after in word
|
else: # Special word == word, no char after in word
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
def set_subject(self, subject):
|
def set_subject(self, subject):
|
||||||
|
|
Loading…
Add table
Reference in a new issue