Mercurial > pidgin.yaz
changeset 25371:be87547aa431
merge of '0bf6462dd433df38943094bbed0393698d91a037'
and '9c4b346f6536ab35c06e2c6cabb905bae60c420d'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 13 Dec 2008 21:13:04 +0000 |
parents | fea25a73edba (current diff) cf6dfd38c7c1 (diff) |
children | ca01403251f1 |
files | libpurple/protocols/bonjour/jabber.c libpurple/protocols/msn/msn.c libpurple/protocols/myspace/CHANGES libpurple/protocols/myspace/ChangeLog libpurple/protocols/myspace/LICENSE libpurple/protocols/myspace/myspace.c libpurple/protocols/myspace/release.sh libpurple/protocols/myspace/user.c libpurple/protocols/qq/im.c |
diffstat | 2 files changed, 18 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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];