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:
kind = 'status'
if kind == 'incoming' and self.nicks[room_jid].lower() in\
text.lower().split():
if kind == 'incoming' and (self.nicks[room_jid].lower() in \
text.lower().split() or self.nicks[room_jid].lower() + ':' in \
text.lower().split()):
other_tags_for_name.append('bold')
chat.Chat.print_conversation_line(self, text, room_jid, kind, contact, tim, \