Commit 171bac23 authored by Philipp Hörist's avatar Philipp Hörist

Save own full jid

parent 5c2c0b22
...@@ -731,6 +731,7 @@ class NonBlockingBind(PlugIn): ...@@ -731,6 +731,7 @@ class NonBlockingBind(PlugIn):
self.bound.append(resp.getTag('bind').getTagData('jid')) self.bound.append(resp.getTag('bind').getTagData('jid'))
log.info('Successfully bound %s.' % self.bound[-1]) log.info('Successfully bound %s.' % self.bound[-1])
jid = JID(resp.getTag('bind').getTagData('jid')) jid = JID(resp.getTag('bind').getTagData('jid'))
self._owner._registered_name = jid
self._owner.User = jid.getNode() self._owner.User = jid.getNode()
self._owner.Resource = jid.getResource() self._owner.Resource = jid.getResource()
# Only negociate stream management after bounded # Only negociate stream management after bounded
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment