comparison src/core/xmpp.py @ 953:4a577b170809

plugin xep-0115: caps optimisation
author Goffi <goffi@goffi.org>
date Mon, 31 Mar 2014 12:24:20 +0200
parents 61c4755f0394
children 9393dc29aaf3
comparison
equal deleted inserted replaced
952:91836a647515 953:4a577b170809
284 def __init__(self, host): 284 def __init__(self, host):
285 xmppim.PresenceClientProtocol.__init__(self) 285 xmppim.PresenceClientProtocol.__init__(self)
286 self.host = host 286 self.host = host
287 287
288 def send(self, obj): 288 def send(self, obj):
289 if not self.host.trigger.point("Presence send", obj): 289 if not self.host.trigger.point("Presence send", self.parent, obj):
290 return 290 return
291 super(SatPresenceProtocol, self).send(obj) 291 super(SatPresenceProtocol, self).send(obj)
292 292
293 def availableReceived(self, entity, show=None, statuses=None, priority=0): 293 def availableReceived(self, entity, show=None, statuses=None, priority=0):
294 debug(_("presence update for [%(entity)s] (available, show=%(show)s statuses=%(statuses)s priority=%(priority)d)") % {'entity': entity, 'show': show, 'statuses': statuses, 'priority': priority}) 294 debug(_("presence update for [%(entity)s] (available, show=%(show)s statuses=%(statuses)s priority=%(priority)d)") % {'entity': entity, 'show': show, 'statuses': statuses, 'priority': priority})