Mercurial > pidgin.yaz
diff libpurple/protocols/qq/qq.c @ 25150:d673ccc44a6e
2009.02.24 - flos <lonicerae(at)gmail.com>
* Changed update_class type from gint to guint32
* Fixed a bug of displaying of memo when memo is nothing
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 24 Feb 2009 14:33:49 +0000 |
parents | 7da3cf2530b7 |
children | 4b8c4870b13a |
line wrap: on
line diff
--- a/libpurple/protocols/qq/qq.c Tue Feb 24 13:15:34 2009 +0000 +++ b/libpurple/protocols/qq/qq.c Tue Feb 24 14:33:49 2009 +0000 @@ -57,7 +57,7 @@ #include "utils.h" #include "version.h" -#define OPENQ_VERSION "0.3.2-p19" +#define OPENQ_VERSION "0.3.2-p20" static GList *server_list_build(gchar select) { @@ -826,8 +826,6 @@ qq_buddy_data *bd; PurpleConnection *gc; guint32 bd_uid; - const gchar *alias; - const gchar *server_alias; g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node)); @@ -841,19 +839,10 @@ g_return_if_fail(NULL != bd); bd_uid = bd->uid; - /* gc, uid, update_class, action */ - qq_request_buddy_memo(gc, bd_uid, 0, QQ_BUDDY_MEMO_MODIFY); - - /* if buddy does NOT have a memo, open the memo dialogue directly */ - alias = purple_buddy_get_alias_only(buddy); - server_alias = purple_buddy_get_server_alias(buddy); - - purple_debug_info("QQ", "alias=%s\n", alias); - purple_debug_info("QQ", "server_alias=%s\n", server_alias); - - if (!qq_strcmp(alias, server_alias)) { - qq_create_buddy_memo(gc, bd_uid, QQ_BUDDY_MEMO_MODIFY); - } + /* param: gc, uid, update_class, action + * here, update_class is set to bd_uid. because some memo packages returned + * without uid, which will make us confused */ + qq_request_buddy_memo(gc, bd_uid, bd_uid, QQ_BUDDY_MEMO_MODIFY); } static GList *qq_buddy_menu(PurpleBuddy *buddy)