X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/1449ad2bc8b00bd9171d392d71da0a45dff71f0a..0589dc540706ddf1615d9085f2a68df227509ee6:/utils/faimtest/faimtest.c?ds=sidebyside diff --git a/utils/faimtest/faimtest.c b/utils/faimtest/faimtest.c index 3afbc7d..04e3110 100644 --- a/utils/faimtest/faimtest.c +++ b/utils/faimtest/faimtest.c @@ -346,7 +346,7 @@ int faimtest_rateresp(struct aim_session_t *sess, struct command_rx_struct *comm 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_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_CAPS_GAMES | AIM_CAPS_SAVESTOCKS); aim_bos_reqbuddyrights(sess, command->conn); /* send the buddy list and profile (required, even if empty) */ @@ -1631,7 +1631,7 @@ int faimtest_parse_ratechange(struct aim_session_t *sess, struct command_rx_stru "limit cleared"}; va_list ap; int code; - unsigned long parmid, windowsize, clear, alert, limit, disconnect; + unsigned long rateclass, windowsize, clear, alert, limit, disconnect; unsigned long currentavg, maxavg; va_start(ap, command); @@ -1640,12 +1640,9 @@ int faimtest_parse_ratechange(struct aim_session_t *sess, struct command_rx_stru code = va_arg(ap, int); /* - * Known parameter ID's... - * 0x0001 Warnings - * 0x0003 BOS (normal ICBMs, userinfo requests, etc) - * 0x0005 Chat messages + * See comments above aim_parse_ratechange_middle() in aim_rxhandlers.c. */ - parmid = va_arg(ap, unsigned long); + rateclass = va_arg(ap, unsigned long); /* * Not sure what this is exactly. I think its the temporal @@ -1665,9 +1662,9 @@ int faimtest_parse_ratechange(struct aim_session_t *sess, struct command_rx_stru va_end(ap); - printf("faimtest: rate %s (paramid 0x%04lx): curavg = %ld, maxavg = %ld, alert at %ld, clear warning at %ld, limit at %ld, disconnect at %ld (window size = %ld)\n", + printf("faimtest: rate %s (rate class 0x%04lx): curavg = %ld, maxavg = %ld, alert at %ld, clear warning at %ld, limit at %ld, disconnect at %ld (window size = %ld)\n", (code < 5)?codes[code]:"invalid", - parmid, + rateclass, currentavg, maxavg, alert, clear, limit, disconnect,