# HG changeset patch # User Hu Yong # Date 1227161530 0 # Node ID 2df1d0449ba697c49b1dc6eb152ad857e3e0ca1c # Parent d18ab9118fd402bdd698dab4278e1dbc622cc0c4 Fix bug in send IM diff -r d18ab9118fd4 -r 2df1d0449ba6 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) {