# HG changeset patch # User Stu Tomlinson # Date 1290993171 0 # Node ID 2a9327053398e964ef5515400224c6ea1a8e7a73 # Parent 054309e46786e7cfa2ec5b97eaa8640b9391cda7 Suppress the "View Locations..." protocol action on MSN if we are not actually using MSNP16 or newer diff -r 054309e46786 -r 2a9327053398 libpurple/protocols/msn/msn.c --- a/libpurple/protocols/msn/msn.c Sun Nov 28 08:22:09 2010 +0000 +++ b/libpurple/protocols/msn/msn.c Mon Nov 29 01:12:51 2010 +0000 @@ -1188,18 +1188,26 @@ static GList * msn_actions(PurplePlugin *plugin, gpointer context) { + PurpleConnection *gc; + MsnSession *session; GList *m = NULL; PurplePluginAction *act; + gc = (PurpleConnection *) context; + session = gc->proto_data; + act = purple_plugin_action_new(_("Set Friendly Name..."), msn_show_set_friendly_name); m = g_list_append(m, act); m = g_list_append(m, NULL); - act = purple_plugin_action_new(_("View Locations..."), - msn_show_locations); - m = g_list_append(m, act); - m = g_list_append(m, NULL); + if (session->protocol_ver >= 16) + { + act = purple_plugin_action_new(_("View Locations..."), + msn_show_locations); + m = g_list_append(m, act); + m = g_list_append(m, NULL); + } act = purple_plugin_action_new(_("Set Home Phone Number..."), msn_show_set_home_phone);