summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-24 12:08:59 -0400
committerLance Stout <lancestout@gmail.com>2010-10-24 12:08:59 -0400
commit04cc48775d32b160fbfb64a8574cf8f0e3a6e54f (patch)
tree1b389c01eff9412eb32e24ae97ccde7de8a7b0b5 /sleekxmpp
parent8f55704928ac16599a62678fc1c3a83d83f43a21 (diff)
downloadslixmpp-04cc48775d32b160fbfb64a8574cf8f0e3a6e54f.tar.gz
slixmpp-04cc48775d32b160fbfb64a8574cf8f0e3a6e54f.tar.bz2
slixmpp-04cc48775d32b160fbfb64a8574cf8f0e3a6e54f.tar.xz
slixmpp-04cc48775d32b160fbfb64a8574cf8f0e3a6e54f.zip
Fixed error in client roster handling.
The roster result iq was not being passed to the roster update handler.
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/clientxmpp.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py
index c3963af7..dc4d0e4a 100644
--- a/sleekxmpp/clientxmpp.py
+++ b/sleekxmpp/clientxmpp.py
@@ -219,8 +219,8 @@ class ClientXMPP(BaseXMPP):
iq['roster']['items'] = {jid: {'name': name,
'subscription': subscription,
'groups': groups}}
- resp = iq.send()
- return resp['type'] == 'result'
+ response = iq.send()
+ return response['type'] == 'result'
def del_roster_item(self, jid):
"""
@@ -235,8 +235,8 @@ class ClientXMPP(BaseXMPP):
def get_roster(self):
"""Request the roster from the server."""
iq = self.Iq()._set_stanza_values({'type': 'get'}).enable('roster')
- iq.send()
- self._handle_roster(iq, request=True)
+ response = iq.send()
+ self._handle_roster(response, request=True)
def _handle_stream_features(self, features):
"""