def availableReceived(self, entity, show=None, statuses=None, priority=0): log.msg("Available from %s (%s, %s, pri=%s)" % ( entity.full(), show, statuses, priority)) if priority >= 0 and show not in ['xa', 'dnd']: scheduling.available_user(entity) else: log.msg("Marking jid unavailable due to negative priority or " "being somewhat unavailable.") scheduling.unavailable_user(entity)
def availableReceived(self, entity, show=None, statuses=None, priority=0): log.msg("Available from %s (%s, %s, pri=%s)" % (entity.full(), show, statuses, priority)) if priority >= 0 and show not in ['xa', 'dnd']: scheduling.available_user(entity) else: log.msg("Marking jid unavailable due to negative priority or " "being somewhat unavailable.") scheduling.unavailable_user(entity) self._find_and_set_status(entity.userhost(), show)
def availableReceived(self, entity, show=None, statuses=None, priority=0): log.msg("Available from %s (%s, %s, pri=%s)" % (entity.full(), show, statuses, priority)) if entity.userhost() == JID(config.SCREEN_NAME).userhost(): return if priority >= 0 and show not in ['xa', 'dnd']: scheduling.available_user(entity) else: log.msg("Marking jid unavailable due to negative priority or " "being somewhat unavailable.") scheduling.unavailable_user(entity)
def worked(stuff): scheduling.available_user(JID(user.jid)) prot.send_plain(user.jid, "Enabled tracks.")