print the nick as bold in gc if the text contain 'nick:'

This commit is contained in:
Yann Leboulanger 2005-04-19 10:34:29 +00:00
parent c2dd8c1081
commit e9ce2593bc
1 changed files with 3 additions and 2 deletions

View File

@ -304,8 +304,9 @@ class Groupchat_window(chat.Chat):
else: else:
kind = 'status' kind = 'status'
if kind == 'incoming' and self.nicks[room_jid].lower() in\ if kind == 'incoming' and (self.nicks[room_jid].lower() in \
text.lower().split(): text.lower().split() or self.nicks[room_jid].lower() + ':' in \
text.lower().split()):
other_tags_for_name.append('bold') other_tags_for_name.append('bold')
chat.Chat.print_conversation_line(self, text, room_jid, kind, contact, tim, \ chat.Chat.print_conversation_line(self, text, room_jid, kind, contact, tim, \