comparison src/core/xmpp.py @ 438:62145e50eae5

core: plugins can now have profileConnected/profileDisconnected method to initialise/free profile dependant resources
author Goffi <goffi@goffi.org>
date Sat, 03 Dec 2011 15:45:48 +0100
parents 37285f2d37c8
children cf005701624b
comparison
equal deleted inserted replaced
437:02c633a0ddcf 438:62145e50eae5
227 227
228 228
229 def available(self, entity=None, show=None, statuses=None, priority=0): 229 def available(self, entity=None, show=None, statuses=None, priority=0):
230 if not statuses: 230 if not statuses:
231 statuses = {} 231 statuses = {}
232 # default for us is None for wokkel 232 # default for us is None for wokkel
233 # so we must temporarily switch to wokkel's convention... 233 # so we must temporarily switch to wokkel's convention...
234 if 'default' in statuses: 234 if 'default' in statuses:
235 statuses[None] = statuses['default'] 235 statuses[None] = statuses['default']
236 236
237 xmppim.PresenceClientProtocol.available(self, entity, show, statuses, priority) 237 xmppim.PresenceClientProtocol.available(self, entity, show, statuses, priority)
238 238