comparison src/core/xmpp.py @ 933:955e5c781a40

core: presence stanzas were sent twice
author souliane <souliane@mailoo.org>
date Mon, 24 Mar 2014 10:16:07 +0100
parents e77948faaef3
children 34dd9287dfe5
comparison
equal deleted inserted replaced
932:1e0550271546 933:955e5c781a40
338 # default for us is None for wokkel 338 # default for us is None for wokkel
339 # so we must temporarily switch to wokkel's convention... 339 # so we must temporarily switch to wokkel's convention...
340 if 'default' in statuses: 340 if 'default' in statuses:
341 statuses[None] = statuses['default'] 341 statuses[None] = statuses['default']
342 342
343 xmppim.PresenceClientProtocol.available(self, entity, show, statuses, priority)
344 presence_elt = xmppim.AvailablePresence(entity, show, statuses, priority) 343 presence_elt = xmppim.AvailablePresence(entity, show, statuses, priority)
345 if not self.host.trigger.point("presence_available", presence_elt, self.parent): 344 if not self.host.trigger.point("presence_available", presence_elt, self.parent):
346 return 345 return
347 self.send(presence_elt) 346 self.send(presence_elt)
348 347