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_0045.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0045.py') diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py index 1e695233..7fc8a2bf 100644 --- a/sleekxmpp/plugins/xep_0045.py +++ b/sleekxmpp/plugins/xep_0045.py @@ -182,7 +182,6 @@ class xep_0045(base.base_plugin): form = form.getXML('submit') query.append(form) iq.append(query) - #result = self.xmpp.send(iq, self.xmpp.makeIq(iq.get('id'))) result = iq.send() if result['type'] == 'error': return False @@ -224,7 +223,6 @@ class xep_0045(base.base_plugin): destroy.append(xreason) query.append(destroy) iq.append(query) - #r = self.xmpp.send(iq, self.xmpp.makeIq(iq.get('id'))) r = iq.send() if r is False or r['type'] == 'error': return False -- cgit v1.2.3