pidgin: 1edea7e7: Suppress the "View Locations..." protoco...
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Sun Nov 28 20:16:07 EST 2010
----------------------------------------------------------------------
Revision: 1edea7e71d8eeae001fd5a4c90f75cf6bbdb11d3
Parent: 88e9e59d62fbafbf694c04a1d55f7acb5d797f55
Author: nosnilmot at pidgin.im
Date: 11/28/10 20:12:51
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1edea7e71d8eeae001fd5a4c90f75cf6bbdb11d3
Changelog:
Suppress the "View Locations..." protocol action on MSN if we are not
actually using MSNP16 or newer
Changes against parent 88e9e59d62fbafbf694c04a1d55f7acb5d797f55
patched libpurple/protocols/msn/msn.c
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msn.c e7cc4cee4d52253881fdcaf46b8fe5e08e8c3117
+++ libpurple/protocols/msn/msn.c a23e23c7ba45eb2d8b5069c8005f0cec7c6fc2e3
@@ -1188,18 +1188,26 @@ msn_actions(PurplePlugin *plugin, gpoint
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);
More information about the Commits
mailing list