# HG changeset patch # User Sadrul Habib Chowdhury # Date 1229202784 0 # Node ID be87547aa431c99c2df38ae934772ba687b7d1da # Parent fea25a73edba140aaa215158b77cc5a03a19b7ae# Parent cf6dfd38c7c1d4bfc912fb7ef15f2c9a4b91e70c merge of '0bf6462dd433df38943094bbed0393698d91a037' and '9c4b346f6536ab35c06e2c6cabb905bae60c420d' diff -r fea25a73edba -r be87547aa431 libpurple/protocols/bonjour/jabber.c --- 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); diff -r fea25a73edba -r be87547aa431 libpurple/protocols/msn/msn.c diff -r fea25a73edba -r be87547aa431 libpurple/protocols/myspace/myspace.c diff -r fea25a73edba -r be87547aa431 libpurple/protocols/myspace/user.c --- 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("http://myspace.com/%d", - 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]; diff -r fea25a73edba -r be87547aa431 libpurple/protocols/qq/im.c