pidgin: 861f103a: Disable unsupported actions for federate...

sadrul at pidgin.im sadrul at pidgin.im
Sat Oct 31 23:10:39 EDT 2009


-----------------------------------------------------------------
Revision: 861f103afc4b68b9d049bb8d1f2fe8c6642267df
Ancestor: 989ff728e6c3fb9c567d2f965dc94e272272edf4
Author: sadrul at pidgin.im
Date: 2009-11-01T03:08:26
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/861f103afc4b68b9d049bb8d1f2fe8c6642267df

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

Disable unsupported actions for federated users on Yahoo.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	b320435577a0080a8e240b7deebd568e8a4a5a06
+++ libpurple/protocols/yahoo/libymsg.c	7f6a0fd6f087d27001e9ad24ff84a5b33efdc2ae
@@ -3999,7 +3999,7 @@ static GList *yahoo_buddy_menu(PurpleBud
 
 	}
 
-	if (f && f->status != YAHOO_STATUS_OFFLINE) {
+	if (f && f->status != YAHOO_STATUS_OFFLINE && f->fed == YAHOO_FEDERATION_NONE) {
 		if (!yd->wm) {
 			act = purple_menu_action_new(_("Join in Chat"),
 			                           PURPLE_CALLBACK(yahoo_chat_goto_menu),
@@ -4039,10 +4039,12 @@ static GList *yahoo_buddy_menu(PurpleBud
 		                           build_presence_submenu(f, gc));
 		m = g_list_append(m, act);
 
-		act = purple_menu_action_new(_("Start Doodling"),
-		                           PURPLE_CALLBACK(yahoo_doodle_blist_node),
-		                           NULL, NULL);
-		m = g_list_append(m, act);
+		if (f->fed == YAHOO_FEDERATION_NONE) {
+			act = purple_menu_action_new(_("Start Doodling"),
+					PURPLE_CALLBACK(yahoo_doodle_blist_node),
+					NULL, NULL);
+			m = g_list_append(m, act);
+		}
 
 		act = purple_menu_action_new(_("Set User Info..."),
 		                           PURPLE_CALLBACK(yahoo_userinfo_blist_node),


More information about the Commits mailing list