comparison src/core/xmpp.py @ 1435:7590bbf44eed

bridge, quick_frontend: the JID that is assigned by the server can differ from the one we asked for (resource)
author souliane <souliane@mailoo.org>
date Wed, 10 Jun 2015 18:04:43 +0200
parents b06047e1c1fb
children 7797dda847ae
comparison
equal deleted inserted replaced
1434:b06047e1c1fb 1435:7590bbf44eed
57 return 57 return
58 client.XMPPClient._authd(self, xmlstream) 58 client.XMPPClient._authd(self, xmlstream)
59 self.__connected = True 59 self.__connected = True
60 log.info(_("********** [%s] CONNECTED **********") % self.profile) 60 log.info(_("********** [%s] CONNECTED **********") % self.profile)
61 self.streamInitialized() 61 self.streamInitialized()
62 self.host_app.bridge.connected(self.profile) # we send the signal to the clients 62 self.host_app.bridge.connected(self.profile, unicode(self.jid)) # we send the signal to the clients
63 63
64 def streamInitialized(self): 64 def streamInitialized(self):
65 """Called after _authd""" 65 """Called after _authd"""
66 log.debug(_("XML stream is initialized")) 66 log.debug(_("XML stream is initialized"))
67 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire) 67 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") # Needed to avoid disconnection (specially with openfire)