Mercurial > pidgin
diff libpurple/protocols/qq/sys_msg.c @ 23051:55f986ccbb6a
patch-05-reconnect-and-code-cleanup
| author | SHiNE CsyFeK <csyfek@gmail.com> |
|---|---|
| date | Tue, 24 Jun 2008 12:28:38 +0000 |
| parents | 51dbe83ebbd3 |
| children | 1c50f12b1c52 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/sys_msg.c Tue Jun 24 12:22:40 2008 +0000 +++ b/libpurple/protocols/qq/sys_msg.c Tue Jun 24 12:28:38 2008 +0000 @@ -120,10 +120,13 @@ /* Send ACK if the sys message needs an ACK */ static void _qq_send_packet_ack_msg_sys(PurpleConnection *gc, guint8 code, guint32 from, guint16 seq) { + qq_data *qd; guint8 bar, *ack; gchar *str; gint ack_len, bytes; + qd = (qq_data *) gc->proto_data; + str = g_strdup_printf("%d", from); bar = 0x1e; ack_len = 1 + 1 + strlen(str) + 1 + 2; @@ -139,7 +142,7 @@ g_free(str); if (bytes == ack_len) /* creation OK */ - qq_send_cmd(gc, QQ_CMD_ACK_SYS_MSG, TRUE, 0, FALSE, ack, ack_len); + qq_send_cmd_detail(qd, QQ_CMD_ACK_SYS_MSG, 0, FALSE, ack, ack_len); else purple_debug(PURPLE_DEBUG_ERROR, "QQ", "Fail creating sys msg ACK, expect %d bytes, build %d bytes\n", ack_len, bytes);
