in gc, lines with user's nick is not a separate word are also marked as for us (Liorithiel's patch) fix #463

This commit is contained in:
Yann Leboulanger 2005-06-20 21:41:01 +00:00
parent 858702cb1e
commit 304d316066
1 changed files with 2 additions and 3 deletions

View File

@ -552,9 +552,8 @@ class GroupchatWindow(chat.Chat):
else:
kind = 'status'
if kind == 'incoming' and (self.nicks[room_jid].lower() in \
text.lower().split() or self.nicks[room_jid].lower() + \
self.gc_refer_to_nick_char in text.lower().split()):
if kind == 'incoming' and \
text.lower().find(self.nicks[room_jid].lower()) != -1:
other_tags_for_name.append('bold')
other_tags_for_text.append('marked')