| 171 |
171 |
| 172 qd->is_show_notice = purple_account_get_bool(account, "show_notice", TRUE); |
172 qd->is_show_notice = purple_account_get_bool(account, "show_notice", TRUE); |
| 173 qd->is_show_news = purple_account_get_bool(account, "show_news", TRUE); |
173 qd->is_show_news = purple_account_get_bool(account, "show_news", TRUE); |
| 174 qd->is_show_chat = purple_account_get_bool(account, "show_chat", TRUE); |
174 qd->is_show_chat = purple_account_get_bool(account, "show_chat", TRUE); |
| 175 |
175 |
| |
176 if (purple_account_get_bool(account, "default_font", FALSE)) { |
| |
177 qd->custom = QQ_CUSTOM_USE_DEFAULT_FONT; |
| |
178 } |
| |
179 else { |
| |
180 qd->custom = QQ_CUSTOM_NONE; |
| |
181 } |
| |
182 |
| 176 qd->resend_times = purple_prefs_get_int("/plugins/prpl/qq/resend_times"); |
183 qd->resend_times = purple_prefs_get_int("/plugins/prpl/qq/resend_times"); |
| 177 if (qd->resend_times <= 1) qd->itv_config.resend = 4; |
184 if (qd->resend_times <= 1) qd->itv_config.resend = 4; |
| 178 |
185 |
| 179 qd->itv_config.resend = purple_prefs_get_int("/plugins/prpl/qq/resend_interval"); |
186 qd->itv_config.resend = purple_prefs_get_int("/plugins/prpl/qq/resend_interval"); |
| 180 if (qd->itv_config.resend <= 0) qd->itv_config.resend = 3; |
187 if (qd->itv_config.resend <= 0) qd->itv_config.resend = 3; |
| 821 static void qq_modify_buddy_memo_from_menu_cb(PurpleBlistNode *node, gpointer data) |
828 static void qq_modify_buddy_memo_from_menu_cb(PurpleBlistNode *node, gpointer data) |
| 822 { |
829 { |
| 823 PurpleBuddy *buddy; |
830 PurpleBuddy *buddy; |
| 824 qq_buddy_data *bd; |
831 qq_buddy_data *bd; |
| 825 PurpleConnection *gc; |
832 PurpleConnection *gc; |
| 826 guint32 bd_uid; |
833 UID bd_uid; |
| 827 |
834 |
| 828 g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node)); |
835 g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node)); |
| 829 |
836 |
| 830 buddy = (PurpleBuddy *)node; |
837 buddy = (PurpleBuddy *)node; |
| 831 g_return_if_fail(NULL != buddy); |
838 g_return_if_fail(NULL != buddy); |
| 925 /* who is the nickname of buddy in QQ chat-room (Qun) */ |
932 /* who is the nickname of buddy in QQ chat-room (Qun) */ |
| 926 static void qq_get_chat_buddy_info(PurpleConnection *gc, gint channel, const gchar *who) |
933 static void qq_get_chat_buddy_info(PurpleConnection *gc, gint channel, const gchar *who) |
| 927 { |
934 { |
| 928 qq_data *qd; |
935 qq_data *qd; |
| 929 gchar *uid_str; |
936 gchar *uid_str; |
| 930 guint32 uid; |
937 UID uid; |
| 931 |
938 |
| 932 purple_debug_info("QQ", "Get chat buddy info of %s\n", who); |
939 purple_debug_info("QQ", "Get chat buddy info of %s\n", who); |
| 933 g_return_if_fail(who != NULL); |
940 g_return_if_fail(who != NULL); |
| 934 |
941 |
| 935 uid_str = chat_name_to_purple_name(who); |
942 uid_str = chat_name_to_purple_name(who); |
| 1140 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
1147 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
| 1141 |
1148 |
| 1142 option = purple_account_option_bool_new(_("Show chat room when msg comes"), "show_chat", TRUE); |
1149 option = purple_account_option_bool_new(_("Show chat room when msg comes"), "show_chat", TRUE); |
| 1143 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
1150 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
| 1144 |
1151 |
| |
1152 option = purple_account_option_bool_new(_("Use default font"), "default_font", FALSE); |
| |
1153 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
| |
1154 |
| 1145 option = purple_account_option_int_new(_("Keep alive interval (seconds)"), "keep_alive_interval", 60); |
1155 option = purple_account_option_int_new(_("Keep alive interval (seconds)"), "keep_alive_interval", 60); |
| 1146 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
1156 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
| 1147 |
1157 |
| 1148 option = purple_account_option_int_new(_("Update interval (seconds)"), "update_interval", 300); |
1158 option = purple_account_option_int_new(_("Update interval (seconds)"), "update_interval", 300); |
| 1149 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
1159 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |