diff options
author | Lance Stout <lancestout@gmail.com> | 2012-04-25 11:03:33 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-04-25 11:03:33 -0700 |
commit | 4d89d26a1c98f1f20e8e9943615e5d2984410849 (patch) | |
tree | 25fb89308230a849a508d03651fb1a51dd9d4064 /sleekxmpp/clientxmpp.py | |
parent | 0cc14cee4de050529048470db81827a3f9d547a3 (diff) | |
download | slixmpp-4d89d26a1c98f1f20e8e9943615e5d2984410849.tar.gz slixmpp-4d89d26a1c98f1f20e8e9943615e5d2984410849.tar.bz2 slixmpp-4d89d26a1c98f1f20e8e9943615e5d2984410849.tar.xz slixmpp-4d89d26a1c98f1f20e8e9943615e5d2984410849.zip |
Prevent corrupting roster_update event with iq result.
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r-- | sleekxmpp/clientxmpp.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 1c7937ce..e77e6ce2 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -277,9 +277,11 @@ class ClientXMPP(BaseXMPP): self.event("roster_update", iq) if iq['type'] == 'set': - iq.reply() - iq.enable('roster') - iq.send() + resp = self.Iq(stype='result', + sto=iq['from'], + sid=iq['id']) + resp.enable('roster') + resp.send() def _handle_session_bind(self, jid): """Set the client roster to the JID set by the server. |