summaryrefslogtreecommitdiff
path: root/sleekxmpp/clientxmpp.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-12 17:21:43 -0800
committerLance Stout <lancestout@gmail.com>2012-01-12 17:21:43 -0800
commite8b2dd669815a28b045e070f07bebed6770b82b8 (patch)
treee4296082140c7e5d387ec532b9927149be06e8d3 /sleekxmpp/clientxmpp.py
parentc0074f95b160f4766168ed2cae955709bf38d124 (diff)
downloadslixmpp-e8b2dd669815a28b045e070f07bebed6770b82b8.tar.gz
slixmpp-e8b2dd669815a28b045e070f07bebed6770b82b8.tar.bz2
slixmpp-e8b2dd669815a28b045e070f07bebed6770b82b8.tar.xz
slixmpp-e8b2dd669815a28b045e070f07bebed6770b82b8.zip
Update Roster stanza to use RosterItem substanzas.
get_roster() now returns the Iq result stanza instead of True (stanzas also evaluate to True).
Diffstat (limited to 'sleekxmpp/clientxmpp.py')
-rw-r--r--sleekxmpp/clientxmpp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index 36b135d3..69e7db6c 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -244,7 +244,8 @@ class ClientXMPP(BaseXMPP):
response = iq.send(block, timeout, callback)
if block:
- return self._handle_roster(response, request=True)
+ self._handle_roster(response, request=True)
+ return response
def _handle_connected(self, event=None):
#TODO: Use stream state here
@@ -291,7 +292,6 @@ class ClientXMPP(BaseXMPP):
iq.reply()
iq.enable('roster')
iq.send()
- return True
def _handle_session_bind(self, jid):
"""Set the client roster to the JID set by the server.