in gc, lines with user's nick is not a separate word are also marked as for us (Liorithiel's patch) fix #463
This commit is contained in:
		
							parent
							
								
									858702cb1e
								
							
						
					
					
						commit
						304d316066
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -552,9 +552,8 @@ class GroupchatWindow(chat.Chat):
 | 
			
		|||
		else:
 | 
			
		||||
			kind = 'status'
 | 
			
		||||
 | 
			
		||||
		if kind == 'incoming' and (self.nicks[room_jid].lower() in \
 | 
			
		||||
			text.lower().split() or self.nicks[room_jid].lower() + \
 | 
			
		||||
			self.gc_refer_to_nick_char in text.lower().split()):
 | 
			
		||||
		if kind == 'incoming' and \
 | 
			
		||||
				text.lower().find(self.nicks[room_jid].lower()) != -1:
 | 
			
		||||
			other_tags_for_name.append('bold')
 | 
			
		||||
			other_tags_for_text.append('marked')
 | 
			
		||||
		
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue