new xml log plugin

This commit is contained in:
Goffi 2011-02-01 23:07:08 +01:00
commit 844b9662fa

View file

@ -88,10 +88,13 @@ class SatXMPPClient(client.XMPPClient):
info (_("********** [%s] CONNECTED **********") % self.profile)
self.streamInitialized()
self.host_app.bridge.connected(self.profile) #we send the signal to the clients
def streamInitialized(self):
"""Called after _authd"""
debug (_("XML stream is initialized"))
if not self.host_app.trigger.point("XML Initialized", self.xmlstream, self.profile):
return
self.keep_alife = task.LoopingCall(self.xmlstream.send, " ") #Needed to avoid disconnection (specially with openfire)
self.keep_alife.start(180)