core cleanup: separate code for sipe_add_buddy()