From cf028229a884d3456cf4d38a3d2db136b4ae3e9c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 17 Jun 2005 06:31:32 +0000 Subject: [PATCH] bugfix: missing references to self.gc_refer_to_nick_char in gc --- src/groupchat_window.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 9675db2fd..813ac104b 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -382,8 +382,10 @@ class GroupchatWindow(chat.Chat): if len(splitted_text): # if there are any words begin = splitted_text[-1] # last word we typed - if len(self.nick_hits[room_jid]) and self.nick_hits[room_jid][0].startswith(begin.replace(',', '')) \ - and self.last_key_tabs[room_jid]: # we should cycle + if len(self.nick_hits[room_jid]) and \ + self.nick_hits[room_jid][0].startswith(begin.replace( + self.gc_refer_to_nick_char, '')) and \ + self.last_key_tabs[room_jid]: # we should cycle self.nick_hits[room_jid].append(self.nick_hits[room_jid][0]) self.nick_hits[room_jid].pop(0) else: @@ -482,8 +484,8 @@ class GroupchatWindow(chat.Chat): kind = 'status' if kind == 'incoming' and (self.nicks[room_jid].lower() in \ - text.lower().split() or self.nicks[room_jid].lower() + ',' in \ - text.lower().split()): + text.lower().split() or self.nicks[room_jid].lower() + \ + self.gc_refer_to_nick_char in text.lower().split()): other_tags_for_name.append('bold') other_tags_for_text.append('marked')