we cannot register to an offline or error transport
This commit is contained in:
		
							parent
							
								
									967bcae933
								
							
						
					
					
						commit
						9952c4dc64
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -250,7 +250,8 @@ class Add_new_contact_window:
 | 
			
		|||
		jid_agents = []
 | 
			
		||||
		for j in self.plugin.roster.contacts[account]:
 | 
			
		||||
			user = self.plugin.roster.contacts[account][j][0]
 | 
			
		||||
			if 'Transports' in user.groups:
 | 
			
		||||
			if 'Transports' in user.groups and user.show != 'offline' and \
 | 
			
		||||
					user.show != 'error':
 | 
			
		||||
				jid_agents.append(j)
 | 
			
		||||
		for a in jid_agents:
 | 
			
		||||
			if a.find('aim') > -1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue