merge of 'c93933e47474a5522b300e0ac9f8aa777205e964' next.minor

Sat, 13 Dec 2008 21:13:04 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 13 Dec 2008 21:13:04 +0000
branch
next.minor
changeset 25150
b0e1b122d83a
parent 25149
c93933e47474 (current diff)
parent 25120
eef77a14bbad (diff)
child 25173
9edc1748a646

merge of 'c93933e47474a5522b300e0ac9f8aa777205e964'
and 'eef77a14bbad53f5f0ee858e719118229b3e825a'

libpurple/protocols/bonjour/jabber.c file | annotate | diff | comparison | revisions
libpurple/protocols/msn/msn.c file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/CHANGES file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/ChangeLog file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/LICENSE file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/myspace.c file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/release.sh file | annotate | diff | comparison | revisions
libpurple/protocols/myspace/user.c file | annotate | diff | comparison | revisions
libpurple/protocols/qq/im.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/bonjour/jabber.c	Fri Dec 12 20:35:18 2008 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Sat Dec 13 21:13:04 2008 +0000
@@ -380,19 +380,27 @@
 }
 
 static void bonjour_jabber_stream_ended(BonjourJabberConversation *bconv) {
-	const gchar *name = NULL;
+
+	/* Inform the user that the conversation has been closed */
 	BonjourBuddy *bb = NULL;
 
+	purple_debug_info("bonjour", "Recieved conversation close notification from %s.\n", bconv->pb ? bconv->pb->name : "(unknown)");
+
+	if(bconv->pb != NULL)
+		bb = purple_buddy_get_protocol_data(bconv->pb);
+#if 0
 	if(bconv->pb != NULL) {
-		name = purple_buddy_get_name(bconv->pb);
-		bb = purple_buddy_get_protocol_data(bconv->pb);
+		PurpleConversation *conv;
+		conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, bconv->pb->name, bconv->pb->account);
+		if (conv != NULL) {
+			char *tmp = g_strdup_printf(_("%s has closed the conversation."), bconv->pb->name);
+			purple_conversation_write(conv, NULL, tmp, PURPLE_MESSAGE_SYSTEM, time(NULL));
+			g_free(tmp);
+		}
 	}
-
-	purple_debug_info("bonjour", "Recieved conversation close notification from %s.\n", name ? name : "(unknown)");
-
+#endif
 	/* Close the socket, clear the watcher and free memory */
 	bonjour_jabber_close_conversation(bconv);
-
 	if(bb)
 		bb->conversation = NULL;
 }
@@ -1165,10 +1173,10 @@
 check_if_blocked(PurpleBuddy *pb)
 {
 	gboolean blocked = FALSE;
-	GSList *l;
-	PurpleAccount *acc;
+	GSList *l = NULL;
+	PurpleAccount *acc = purple_buddy_get_account(pb);
 
-	if(pb == NULL)
+	if(acc == NULL)
 		return FALSE;
 
 	acc = purple_buddy_get_account(pb);
--- a/libpurple/protocols/myspace/user.c	Fri Dec 12 20:35:18 2008 +0000
+++ b/libpurple/protocols/myspace/user.c	Sat Dec 13 21:13:04 2008 +0000
@@ -105,17 +105,6 @@
 
 	uid = purple_blist_node_get_int((PurpleBlistNode *)user->buddy, "UserID");
 
-	if (full) {
-		/* TODO: link to username, if available */
-		if (uid) {
-			char *profile = g_strdup_printf("<a href=\"http://myspace.com/%d\">http://myspace.com/%d</a>",
-											uid, uid);
-			purple_notify_user_info_add_pair(user_info, _("Profile"), profile);
-			g_free(profile);
-		}
-	}
-
-
 	/* a/s/l...the vitals */
 	if (user->age) {
 		char age[16];

mercurial