Mercurial > pidgin
diff libpurple/protocols/msn/msn.c @ 30990:05b3fa3725a1
Read the MPOP setting from the AB.
Refs #13017.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 02 Dec 2010 06:14:19 +0000 |
parents | 2a9327053398 |
children | 703dd6f433a9 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/msn.c Thu Dec 02 06:04:55 2010 +0000 +++ b/libpurple/protocols/msn/msn.c Thu Dec 02 06:14:19 2010 +0000 @@ -1201,7 +1201,8 @@ m = g_list_append(m, act); m = g_list_append(m, NULL); - if (session->protocol_ver >= 16) + if (purple_account_get_bool(session->account, "mpop", TRUE) + && session->protocol_ver >= 16) { act = purple_plugin_action_new(_("View Locations..."), msn_show_locations); @@ -3085,6 +3086,11 @@ prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); + option = purple_account_option_bool_new(_("Allow connecting from multiple locations"), + "mpop", TRUE); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); + purple_cmd_register("nudge", "", PURPLE_CMD_P_PRPL, PURPLE_CMD_FLAG_IM | PURPLE_CMD_FLAG_PRPL_ONLY, "prpl-msn", msn_cmd_nudge,