// if it's unavailable, check to see if they have any resources
// still online
// if they do, set the packet to available, and minus one
// resource
if (presence.getType() == Presence.Type.UNAVAILABLE) {
buddy.removeResource(resource);
if (buddy.size() > 0) {
presence.setType(Presence.Type.AVAILABLE);
}
} else {
int priority = presence.getPriority();