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_0092.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/plugins/xep_0092.py') diff --git a/sleekxmpp/plugins/xep_0092.py b/sleekxmpp/plugins/xep_0092.py index 97346d91..3d026382 100644 --- a/sleekxmpp/plugins/xep_0092.py +++ b/sleekxmpp/plugins/xep_0092.py @@ -55,7 +55,7 @@ class xep_0092(base.base_plugin): iq.attrib['to'] = jid iq.attrib['from'] = self.xmpp.fulljid id = iq.get('id') - result = self.xmpp.send(iq, "" % (self.xmpp.default_ns, id)) + result = iq.send() if result and result is not None and result.get('type', 'error') != 'error': qry = result.find('{jabber:iq:version}query') version = {} -- cgit v1.2.3