From: <mar...@us...> - 2007-02-01 09:23:48
|
Revision: 18179 http://svn.sourceforge.net/gaim/?rev=18179&view=rev Author: markhuetsch Date: 2007-02-01 01:23:48 -0800 (Thu, 01 Feb 2007) Log Message: ----------- I believe there's a bug in the get_buddies_levels() code that I don't have time to find. Temporarily disable it. Modified Paths: -------------- trunk/libgaim/protocols/qq/buddy_info.c trunk/libgaim/protocols/qq/buddy_info.h trunk/libgaim/protocols/qq/buddy_list.c Modified: trunk/libgaim/protocols/qq/buddy_info.c =================================================================== --- trunk/libgaim/protocols/qq/buddy_info.c 2007-01-29 22:07:00 UTC (rev 18178) +++ trunk/libgaim/protocols/qq/buddy_info.c 2007-02-01 09:23:48 UTC (rev 18179) @@ -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) { Modified: trunk/libgaim/protocols/qq/buddy_info.h =================================================================== --- trunk/libgaim/protocols/qq/buddy_info.h 2007-01-29 22:07:00 UTC (rev 18178) +++ trunk/libgaim/protocols/qq/buddy_info.h 2007-02-01 09:23:48 UTC (rev 18179) @@ -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 Modified: trunk/libgaim/protocols/qq/buddy_list.c =================================================================== --- trunk/libgaim/protocols/qq/buddy_list.c 2007-01-29 22:07:00 UTC (rev 18178) +++ trunk/libgaim/protocols/qq/buddy_list.c 2007-02-01 09:23:48 UTC (rev 18179) @@ -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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |