Skip to content
Snippets Groups Projects
Commit c497aeda authored by nkour's avatar nkour
Browse files

patch by hoppke to make char for refering to a specific contact in GC configurable via expert

parent 213c6177
No related branches found
No related tags found
No related merge requests found
......@@ -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],
......
......@@ -51,6 +51,7 @@ def __init__(self, room_jid, nick, plugin, account):
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 @@ def on_message_textview_key_press_event(self, widget, event):
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment