Permalink
Browse files

Fixed error in client roster handling.

The roster result iq was not being passed to the roster update
handler.
  • Loading branch information...
1 parent 8f55704 commit 04cc48775d32b160fbfb64a8574cf8f0e3a6e54f @legastero legastero committed Oct 24, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 sleekxmpp/clientxmpp.py
@@ -219,8 +219,8 @@ def update_roster(self, jid, name=None, subscription=None, groups=[]):
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 @@ def del_roster_item(self, jid):
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):
"""

0 comments on commit 04cc487

Please sign in to comment.