changeset 15483:0d43518fd943

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.
author Evan Schoenberg <evan.s@dreskin.net>
date Thu, 01 Feb 2007 15:35:57 +0000
parents 48f3837a9625
children 8e681a2fde77
files libpurple/protocols/qq/buddy_info.c libpurple/protocols/qq/buddy_info.h libpurple/protocols/qq/buddy_list.c
diffstat 3 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {
--- 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
--- 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);
 		}