Mercurial > pidgin
diff libpurple/protocols/qq/qq.c @ 24145:ec3f7d3e0445
2008.10.04 - lonicerae <lonicerae(at)gmail.com>
* fixed a bug in qq_base.c
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:49:38 +0000 |
parents | c2253c485728 |
children | ce94189f15ad |
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq.c Wed Oct 22 14:48:46 2008 +0000 +++ b/libpurple/protocols/qq/qq.c Wed Oct 22 14:49:38 2008 +0000 @@ -435,7 +435,7 @@ /* send an instant msg to a buddy */ static gint qq_send_im(PurpleConnection *gc, const gchar *who, const gchar *message, PurpleMessageFlags flags) { - gint type, uid_to; + gint type, to_uid; gchar *msg, *msg_with_qq_smiley; qq_data *qd; @@ -446,15 +446,15 @@ g_return_val_if_fail(strlen(message) <= QQ_MSG_IM_MAX, -E2BIG); type = (flags == PURPLE_MESSAGE_AUTO_RESP ? QQ_IM_AUTO_REPLY : QQ_IM_TEXT); - uid_to = purple_name_to_uid(who); + to_uid = purple_name_to_uid(who); /* if msg is to myself, bypass the network */ - if (uid_to == qd->uid) { + if (to_uid == qd->uid) { serv_got_im(gc, who, message, flags, time(NULL)); } else { msg = utf8_to_qq(message, QQ_CHARSET_DEFAULT); msg_with_qq_smiley = purple_smiley_to_qq(msg); - qq_request_send_im(gc, uid_to, msg_with_qq_smiley, type); + qq_send_packet_im(gc, to_uid, msg_with_qq_smiley, type); g_free(msg); g_free(msg_with_qq_smiley); }