[elghinn] fix disco#items without node

This commit is contained in:
Yann Leboulanger 2007-06-03 14:04:36 +00:00
parent 3d4c7bf547
commit 1600ebf73b
1 changed files with 4 additions and 0 deletions

View File

@ -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