# HG changeset patch # User Hu Yong # Date 1227161530 0 # Node ID a196799b64f9064900055f224260877de8b016ed # Parent fdf57a203101728a4cb8a9af0eec998853ff4aaf Fix bug in send IM diff -r fdf57a203101 -r a196799b64f9 libpurple/protocols/qq/group_im.c --- 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) {