[elghinn] fix disco#items without node
This commit is contained in:
		
							parent
							
								
									3d4c7bf547
								
							
						
					
					
						commit
						1600ebf73b
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -700,6 +700,10 @@ class ConnectionDisco:
 | 
			
		|||
	def _DiscoverItemsGetCB(self, con, iq_obj):
 | 
			
		||||
		gajim.log.debug('DiscoverItemsGetCB')
 | 
			
		||||
		node = iq_obj.getTagAttr('query', 'node')
 | 
			
		||||
                if node is None:
 | 
			
		||||
			result = iq_obj.buildReply('result')
 | 
			
		||||
			self.connection.send(result)
 | 
			
		||||
			raise common.xmpp.NodeProcessed
 | 
			
		||||
		if node==common.xmpp.NS_COMMANDS:
 | 
			
		||||
			self.commandListQuery(con, iq_obj)
 | 
			
		||||
			raise common.xmpp.NodeProcessed
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue