patch by hoppke to make char for refering to a specific contact in GC configurable via expert
This commit is contained in:
		
							parent
							
								
									213c617780
								
							
						
					
					
						commit
						c497aeda0d
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -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 @@ 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() | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue