From 1600ebf73bc063e943021a922d205d152ae60ea3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 3 Jun 2007 14:04:36 +0000 Subject: [PATCH] [elghinn] fix disco#items without node --- src/common/connection_handlers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 6fa1bc894..2a5db217e 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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