+int faimtest_rateresp(struct aim_session_t *sess, struct command_rx_struct *command, ...)
+{
+
+ switch(command->conn->type) {
+ case AIM_CONN_TYPE_BOS: {
+ /* this is the new buddy list */
+ char buddies[] = "Buddy1&Buddy2&ThisHereIsAName2&";
+ /* this is the new profile */
+ char profile[] = "Hello";
+
+ aim_bos_ackrateresp(sess, command->conn); /* ack rate info response */
+ aim_bos_reqpersonalinfo(sess, command->conn);
+ aim_bos_reqlocaterights(sess, command->conn);
+ aim_bos_setprofile(sess, command->conn, profile, NULL, AIM_CAPS_BUDDYICON | AIM_CAPS_CHAT | AIM_CAPS_VOICE | AIM_CAPS_GETFILE | AIM_CAPS_SENDFILE | AIM_CAPS_IMIMAGE);
+ aim_bos_reqbuddyrights(sess, command->conn);
+
+ /* send the buddy list and profile (required, even if empty) */
+ aim_bos_setbuddylist(sess, command->conn, buddies);
+
+ /* dont really know what this does */
+ aim_addicbmparam(sess, command->conn);
+ aim_bos_reqicbmparaminfo(sess, command->conn);
+
+ aim_bos_reqrights(sess, command->conn);
+ /* set group permissions -- all user classes */
+ aim_bos_setgroupperm(sess, command->conn, AIM_CLASS_ALLUSERS);
+ aim_bos_setprivacyflags(sess, command->conn, AIM_PRIVFLAGS_ALLOWIDLE|AIM_PRIVFLAGS_ALLOWMEMBERSINCE);
+
+ break;
+ }
+
+ default:
+ printf("faimtest: got rate response for unhandled connection type %04x\n", command->conn->type);
+ break;
+ }
+
+ return 1;
+}
+