From ecd5a172ed49cbdf69cb3eaf0786fd18d801ee65 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Wed, 7 Apr 2010 23:10:32 -0700 Subject: replaced usage of deprecated iq result on send. Fixed old send result to use stanzas instead of ElementTree --- sleekxmpp/plugins/xep_0030.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0030.py') diff --git a/sleekxmpp/plugins/xep_0030.py b/sleekxmpp/plugins/xep_0030.py index bff0dc17..5432dd56 100644 --- a/sleekxmpp/plugins/xep_0030.py +++ b/sleekxmpp/plugins/xep_0030.py @@ -93,7 +93,7 @@ class xep_0030(base.base_plugin): self.xmpp.makeIqQuery(iq, 'http://jabber.org/protocol/disco#items') if node: iq.find('{http://jabber.org/protocol/disco#items}query').attrib['node'] = node - return self.xmpp.send(iq, "" % iq.get('id')) + return iq.send() def getInfo(self, jid, node=None): iq = self.xmpp.makeIqGet() @@ -102,7 +102,7 @@ class xep_0030(base.base_plugin): self.xmpp.makeIqQuery(iq, 'http://jabber.org/protocol/disco#info') if node: iq.find('{http://jabber.org/protocol/disco#info}query').attrib['node'] = node - return self.xmpp.send(iq, self.xmpp.makeIq(iq.get('id'))) + return iq.send() def parseInfo(self, xml): result = {'identity': {}, 'feature': []} -- cgit v1.2.3