changeset 24651:2df1d0449ba6

Fix bug in send IM
author Hu Yong <ccpaging@gmail.com>
date Thu, 20 Nov 2008 06:12:10 +0000
parents d18ab9118fd4
children 0036025df58d
files libpurple/protocols/qq/group_im.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/qq/group_im.c	Wed Nov 19 08:48:21 2008 +0000
+++ b/libpurple/protocols/qq/group_im.c	Thu Nov 20 06:12:10 2008 +0000
@@ -308,8 +308,6 @@
 	bytes += qq_put16(raw_data + bytes, 0);
 	bytes += qq_putdata(raw_data + bytes, (guint8 *)msg, strlen(msg));
 	bytes += qq_put_im_tail(raw_data + bytes, fmt);
-	bytes += qq_put32(raw_data + bytes, 0);	/* unknown 4 bytes */
-
 	/* reset first two bytes */
 	qq_put16(raw_data, bytes - 2);
 
@@ -356,7 +354,7 @@
 
 	/* reset first two bytes as length */
 	qq_put16(raw_data, bytes - 2);
-	
+
 	/*qq_show_packet("QQ_ROOM_CMD_SEND_IM_EX", raw_data, bytes); */
 	qq_send_room_cmd(gc, QQ_ROOM_CMD_SEND_IM_EX, room_id, raw_data, bytes);
 }
@@ -415,7 +413,7 @@
 	fmt = qq_im_fmt_new_by_purple(what);
 	frag_count = g_slist_length(segments);
 	frag_index = 0;
-/*	
+/*
 	if (frag_count <= 1) {
 */
 		for (it = segments; it; it = it->next) {