also call _IqCB when we get registration result
This commit is contained in:
parent
96989ac7ee
commit
01b8de5b0c
|
@ -1954,6 +1954,10 @@ class Connection:
|
||||||
self.connection.getRoster().setItem(jid = jid, name = name,
|
self.connection.getRoster().setItem(jid = jid, name = name,
|
||||||
groups = groups)
|
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):
|
def request_register_agent_info(self, agent):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
return None
|
return None
|
||||||
|
@ -1964,8 +1968,8 @@ class Connection:
|
||||||
self.awaiting_timeouts[time.time() + 30] = (id,
|
self.awaiting_timeouts[time.time() + 30] = (id,
|
||||||
_('Registration information for transport %s has not arrived in time' % \
|
_('Registration information for transport %s has not arrived in time' % \
|
||||||
agent))
|
agent))
|
||||||
self.connection.SendAndCallForResponse(iq,
|
self.connection.SendAndCallForResponse(iq, self._ReceivedRegInfo,
|
||||||
common.xmpp.features._ReceivedRegInfo, {'agent': agent})
|
{'agent': agent})
|
||||||
|
|
||||||
def register_agent(self, agent, info, is_form = False):
|
def register_agent(self, agent, info, is_form = False):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
|
|
Loading…
Reference in New Issue