summaryrefslogtreecommitdiff
path: root/sleekxmpp/clientxmpp.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r--sleekxmpp/clientxmpp.py8
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.