diff libpurple/protocols/oscar/oscar.c @ 24923:8a930bc2734d

Don't show the 'Edit Buddy Comment' option for PurpleBuddys that are not actually on our server list (such as the transient ones used for conversations with non-buddies), fixes Fedora bug 478727
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 08 Jan 2009 21:47:15 +0000
parents 568b786c36f9
children 6f1f809d6fa2
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Thu Jan 08 14:16:42 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Thu Jan 08 21:47:15 2009 +0000
@@ -6200,10 +6200,13 @@
 		menu = g_list_prepend(menu, act);
 	}
 
-	act = purple_menu_action_new(_("Edit Buddy Comment"),
-	                           PURPLE_CALLBACK(oscar_buddycb_edit_comment),
-	                           NULL, NULL);
-	menu = g_list_prepend(menu, act);
+	if (aim_ssi_itemlist_exists(od->ssi.local, buddy->name) != NULL)
+	{
+		act = purple_menu_action_new(_("Edit Buddy Comment"),
+		                           PURPLE_CALLBACK(oscar_buddycb_edit_comment),
+		                           NULL, NULL);
+		menu = g_list_prepend(menu, act);
+	}
 
 #if 0
 	if (od->icq)