comparison src/sat.tac @ 277:05caa87196e6

new xml log plugin
author Goffi <goffi@goffi.org>
date Tue, 01 Feb 2011 23:07:08 +0100
parents a00e87d48213
children 6a0c6d8e119d
comparison
equal deleted inserted replaced
276:a00e87d48213 277:05caa87196e6
86 client.XMPPClient._authd(self, xmlstream) 86 client.XMPPClient._authd(self, xmlstream)
87 self.__connected=True 87 self.__connected=True
88 info (_("********** [%s] CONNECTED **********") % self.profile) 88 info (_("********** [%s] CONNECTED **********") % self.profile)
89 self.streamInitialized() 89 self.streamInitialized()
90 self.host_app.bridge.connected(self.profile) #we send the signal to the clients 90 self.host_app.bridge.connected(self.profile) #we send the signal to the clients
91
91 92
92 def streamInitialized(self): 93 def streamInitialized(self):
93 """Called after _authd""" 94 """Called after _authd"""
94 debug (_("XML stream is initialized")) 95 debug (_("XML stream is initialized"))
96 if not self.host_app.trigger.point("XML Initialized", self.xmlstream, self.profile):
97 return
95 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") #Needed to avoid disconnection (specially with openfire) 98 self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") #Needed to avoid disconnection (specially with openfire)
96 self.keep_alife.start(180) 99 self.keep_alife.start(180)
97 100
98 self.disco = SatDiscoProtocol(self) 101 self.disco = SatDiscoProtocol(self)
99 self.disco.setHandlerParent(self) 102 self.disco.setHandlerParent(self)