From 739128866858670a20b9c0ce5d623ca9848aef3b Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 7 Apr 2012 17:30:25 -0400 Subject: Tidy up roster_received event and callbacks. --- sleekxmpp/clientxmpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index 02f7776a..1c7937ce 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -223,12 +223,12 @@ class ClientXMPP(BaseXMPP): iq['roster']['ver'] = self.client_roster.version if not block and callback is None: - callback = lambda resp: self._handle_roster(resp, request=True) + callback = lambda resp: self._handle_roster(resp) response = iq.send(block, timeout, callback) + self.event('roster_received', response) if block: - self.event('roster_received', response) self._handle_roster(response) return response -- cgit v1.2.3