From 01b8de5b0cd4b634738b6a1459a064146a5a2e5c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 21 Nov 2005 15:09:04 +0000 Subject: [PATCH] also call _IqCB when we get registration result --- src/common/connection.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/connection.py b/src/common/connection.py index d052519af..82496aa98 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1954,6 +1954,10 @@ class Connection: self.connection.getRoster().setItem(jid = jid, name = name, groups = groups) + def _ReceivedRegInfo(self, con, resp, agent): + common.xmpp.features._ReceivedRegInfo(con, resp, agent) + self._IqCB(con, resp) + def request_register_agent_info(self, agent): if not self.connection: return None @@ -1964,8 +1968,8 @@ class Connection: self.awaiting_timeouts[time.time() + 30] = (id, _('Registration information for transport %s has not arrived in time' % \ agent)) - self.connection.SendAndCallForResponse(iq, - common.xmpp.features._ReceivedRegInfo, {'agent': agent}) + self.connection.SendAndCallForResponse(iq, self._ReceivedRegInfo, + {'agent': agent}) def register_agent(self, agent, info, is_form = False): if not self.connection: