# HG changeset patch # User Evan Schoenberg # Date 1170344157 0 # Node ID 0d43518fd943117079c637a7decc35d197ef004a # Parent 48f3837a9625c6aa685be571ca9d2c2ba9bf799a Port [18179] from markhuetsch: I believe there's a bug in the get_buddies_levels() code that I don't have time to find. Temporarily disable it. diff -r 48f3837a9625 -r 0d43518fd943 libpurple/protocols/qq/buddy_info.c --- a/libpurple/protocols/qq/buddy_info.c Thu Feb 01 15:34:55 2007 +0000 +++ b/libpurple/protocols/qq/buddy_info.c Thu Feb 01 15:35:57 2007 +0000 @@ -741,6 +741,7 @@ qq_send_cmd(gc, QQ_CMD_GET_LEVEL, TRUE, 0, TRUE, buf, 5); } +/* void qq_send_packet_get_buddies_levels(GaimConnection *gc) { guint8 *buf, *tmp, size; @@ -749,8 +750,10 @@ GList *node = qd->buddies; if (qd->buddies) { +*/ /* server only sends back levels for online buddies, no point * in asking for anyone else */ +/* size = 4*g_list_length(qd->buddies) + 1; buf = g_new0(guint8, size); tmp = buf + 1; @@ -767,8 +770,9 @@ } qq_send_cmd(gc, QQ_CMD_GET_LEVEL, TRUE, 0, TRUE, buf, size); g_free(buf); - } + } } +*/ void qq_process_get_level_reply(guint8 *buf, gint buf_len, GaimConnection *gc) { diff -r 48f3837a9625 -r 0d43518fd943 libpurple/protocols/qq/buddy_info.h --- a/libpurple/protocols/qq/buddy_info.h Thu Feb 01 15:34:55 2007 +0000 +++ b/libpurple/protocols/qq/buddy_info.h Thu Feb 01 15:35:57 2007 +0000 @@ -93,7 +93,9 @@ void qq_process_get_info_reply(guint8 *buf, gint buf_len, GaimConnection *gc); void qq_info_query_free(qq_data *qd); void qq_send_packet_get_level(GaimConnection *gc, guint32 uid); +/* void qq_send_packet_get_buddies_levels(GaimConnection *gc); +*/ void qq_process_get_level_reply(guint8 *buf, gint buf_len, GaimConnection *gc); #endif diff -r 48f3837a9625 -r 0d43518fd943 libpurple/protocols/qq/buddy_list.c --- a/libpurple/protocols/qq/buddy_list.c Thu Feb 01 15:34:55 2007 +0000 +++ b/libpurple/protocols/qq/buddy_list.c Thu Feb 01 15:35:57 2007 +0000 @@ -215,8 +215,7 @@ q_bud->flag1 = fe->flag1; q_bud->comm_flag = fe->comm_flag; qq_update_buddy_contact(gc, q_bud); - } - else { + } else { gaim_debug(GAIM_DEBUG_ERROR, "QQ", "Got an online buddy %d, but not in my buddy list\n", fe->s->uid); } @@ -234,9 +233,8 @@ gaim_debug(GAIM_DEBUG_INFO, "QQ", "Has more online buddies, position from %d\n", position); qq_send_packet_get_buddies_online(gc, position); - } - else { - qq_send_packet_get_buddies_levels(gc); + } else { + /* qq_send_packet_get_buddies_levels(gc); */ qq_refresh_all_buddy_status(gc); }