From c497aeda0d1742440432f0f9043c8d455d8ecfc5 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Thu, 16 Jun 2005 22:18:46 +0000 Subject: [PATCH] patch by hoppke to make char for refering to a specific contact in GC configurable via expert --- src/common/config.py | 1 + src/groupchat_window.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/config.py b/src/common/config.py index 13ca248c3..93de79403 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -79,6 +79,7 @@ class Config: 'gc-width': [opt_int, 675], 'gc-height': [opt_int, 400], 'gc-hpaned-position': [opt_int, 535], + 'gc_refer_to_nick_char': [opt_str, ','], 'chat-x-position': [opt_int, 0], 'chat-y-position': [opt_int, 0], 'chat-width': [opt_int, 415], diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 005d8b356..ccaf17326 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -51,6 +51,7 @@ class GroupchatWindow(chat.Chat): self.last_key_tabs = {} self.hpaneds = {} # used for auto positioning self.hpaned_position = gajim.config.get('gc-hpaned-position') + self.gc_refer_to_nick_sep = gajim.config.get('gc_refer_to_nick_sep') self.new_room(room_jid, nick) self.show_title() self.xml.signal_connect('on_groupchat_window_destroy', @@ -392,7 +393,7 @@ class GroupchatWindow(chat.Chat): self.nick_hits[room_jid].append(nick) if len(self.nick_hits[room_jid]): if len(splitted_text) == 1: # This is the 1st word of the line - add = ', ' + add = self.gc_refer_to_nick_char + ' ' else: add = ' ' start_iter = end_iter.copy()