pidgin/gtkblist.c

changeset 38930
fdf18345ddf3
parent 38929
159404505264
child 39037
5014cd8d58e3
--- a/pidgin/gtkblist.c	Thu Mar 29 23:20:36 2018 -0500
+++ b/pidgin/gtkblist.c	Thu Apr 05 23:05:09 2018 -0500
@@ -939,11 +939,9 @@
 add_buddy_account_filter_func(PurpleAccount *account)
 {
 	PurpleConnection *gc = purple_account_get_connection(account);
-	PurplePluginProtocolInfo *prpl_info = NULL;
-
-	prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl);
-
-	return (prpl_info->add_buddy != NULL);
+	PurpleProtocol *protocol = purple_connection_get_protocol(gc);
+
+	return PURPLE_PROTOCOL_IMPLEMENTS(protocol, SERVER_IFACE, add_buddy);
 }
 
 static gboolean
@@ -4786,7 +4784,6 @@
 static void
 conversation_created_cb(PurpleConversation *conv, PidginBuddyList *gtkblist)
 {
-<<<<<<< working copy
 	PurpleAccount *account = purple_conversation_get_account(conv);
 
 	if (PURPLE_IS_IM_CONVERSATION(conv)) {
@@ -6127,7 +6124,7 @@
 	                      PURPLE_CALLBACK(conversation_created_cb),
 	                      gtkblist);
 	purple_signal_connect(handle, "chat-joined", gtkblist,
-	                      PURPLE_CALLBACK(chat_joined_cb),
+	                      PURPLE_CALLBACK(conversation_created_cb),
 	                      gtkblist);
 
 	gtk_widget_hide(gtkblist->headline);

mercurial