From e700a54d11a01c0ed24cddb14ceac0511fbc8372 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Wed, 2 Jun 2010 15:59:10 -0400 Subject: [PATCH] Return result of iq.send() for disco requests. Events are still triggered, but now the caller can determine if there was a timeout. --- sleekxmpp/plugins/xep_0030.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/plugins/xep_0030.py b/sleekxmpp/plugins/xep_0030.py index 9fcc8b1..73f4636 100644 --- a/sleekxmpp/plugins/xep_0030.py +++ b/sleekxmpp/plugins/xep_0030.py @@ -299,7 +299,7 @@ class xep_0030(base.base_plugin): iq['to'] = jid iq['from'] = dfrom iq['disco_info']['node'] = node - iq.send() + return iq.send() def getItems(self, jid, node='', dfrom=None): iq = self.xmpp.Iq() @@ -307,7 +307,7 @@ class xep_0030(base.base_plugin): iq['to'] = jid iq['from'] = dfrom iq['disco_items']['node'] = node - iq.send() + return iq.send() def add_feature(self, feature, node='main'): self.add_node(node)