don't cycle through blobk nicknames when autocompletting nicks. Fixes #7398
This commit is contained in:
		
							parent
							
								
									9bcbb764ef
								
							
						
					
					
						commit
						8c4e269827
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2306,7 +2306,9 @@ class GroupchatControl(ChatControlBase):
 | 
			
		|||
 | 
			
		||||
                list_nick.remove(self.nick) # Skip self
 | 
			
		||||
                for nick in list_nick:
 | 
			
		||||
                    if nick.lower().startswith(begin.lower()):
 | 
			
		||||
                    fjid = self.room_jid + '/' + nick
 | 
			
		||||
                    if nick.lower().startswith(begin.lower()) and not \
 | 
			
		||||
                    helpers.jid_is_blocked(self.account, fjid):
 | 
			
		||||
                        # the word is the begining of a nick
 | 
			
		||||
                        self.nick_hits.append(nick)
 | 
			
		||||
            if len(self.nick_hits):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue