From e9ce2593bc17d2af55c07cc62658fec9246ec8fa Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 19 Apr 2005 10:34:29 +0000 Subject: [PATCH] print the nick as bold in gc if the text contain 'nick:' --- src/groupchat_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index ab9118978..ca5d398f3 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -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, \