Mercurial > pidgin
comparison libpurple/protocols/qq/qq.c @ 24089:2f5a7edd8f68
2008.09.02 - ccpaging <ccpaging(at)gmail.com>
* Bugfix: can not send message to the QUN blocked adding
* Tickets:
Fixes #6957
Fixes #6990
2008.09.02 - ccpaging <ccpaging(at)gmail.com>
* Use new tactics of information update:
1. send next package till the previous package received
2. fix duplicated get_room_info and get_room_buddies command
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Thu, 11 Sep 2008 13:29:26 +0000 |
parents | 147ada94a1d8 |
children | 6408be948d56 5f964757f517 |
comparison
equal
deleted
inserted
replaced
24088:147ada94a1d8 | 24089:2f5a7edd8f68 |
---|---|
95 g_return_if_fail(gc != NULL && gc->proto_data != NULL); | 95 g_return_if_fail(gc != NULL && gc->proto_data != NULL); |
96 qd = gc->proto_data; | 96 qd = gc->proto_data; |
97 | 97 |
98 gpi = purple_proxy_get_setup(account); | 98 gpi = purple_proxy_get_setup(account); |
99 | 99 |
100 qd->use_tcp = TRUE; | 100 qd->use_tcp = purple_account_get_bool(account, "use_tcp", TRUE); |
101 if (purple_proxy_info_get_type(gpi) == PURPLE_PROXY_UDP) { | |
102 qd->use_tcp = FALSE; | |
103 } | |
104 | 101 |
105 user_server = purple_account_get_string(account, "server", NULL); | 102 user_server = purple_account_get_string(account, "server", NULL); |
106 purple_debug_info("QQ", "Select server '%s'\n", user_server); | 103 purple_debug_info("QQ", "Select server '%s'\n", user_server); |
107 if ( (user_server != NULL && strlen(user_server) > 0) && strcasecmp(user_server, "auto") != 0) { | 104 if ( (user_server != NULL && strlen(user_server) > 0) && strcasecmp(user_server, "auto") != 0) { |
108 qd->servers = g_list_append(qd->servers, g_strdup(user_server)); | 105 qd->servers = g_list_append(qd->servers, g_strdup(user_server)); |
466 purple_debug_error("QQ", "Not valid QQid: %s\n", who); | 463 purple_debug_error("QQ", "Not valid QQid: %s\n", who); |
467 purple_notify_error(gc, NULL, _("Invalid name"), NULL); | 464 purple_notify_error(gc, NULL, _("Invalid name"), NULL); |
468 return; | 465 return; |
469 } | 466 } |
470 | 467 |
471 qq_send_packet_get_level(gc, uid); | 468 qq_request_get_level(gc, uid); |
472 qq_send_packet_get_info(gc, uid, TRUE); | 469 qq_send_packet_get_info(gc, uid, TRUE); |
473 } | 470 } |
474 | 471 |
475 /* get my own information */ | 472 /* get my own information */ |
476 static void _qq_menu_modify_my_info(PurplePluginAction *action) | 473 static void _qq_menu_modify_my_info(PurplePluginAction *action) |
843 kvlist = g_list_append(kvlist, kvp); | 840 kvlist = g_list_append(kvlist, kvp); |
844 } | 841 } |
845 entry = entry->next; | 842 entry = entry->next; |
846 } | 843 } |
847 | 844 |
848 /* | 845 option = purple_account_option_list_new(_("Server"), "server", kvlist); |
849 option = purple_account_option_string_new(_("Server"), "server", NULL); | |
850 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 846 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
851 | 847 |
852 option = purple_account_option_int_new(_("Port"), "port", 0); | 848 option = purple_account_option_bool_new(_("Connect by TCP"), "use_tcp", TRUE); |
853 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | |
854 */ | |
855 option = purple_account_option_list_new(_("Server"), "server", kvlist); | |
856 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 849 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
857 | 850 |
858 option = purple_account_option_bool_new(_("Show server notice"), "show_notice", TRUE); | 851 option = purple_account_option_bool_new(_("Show server notice"), "show_notice", TRUE); |
859 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 852 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
860 | 853 |