Mercurial > pidgin
comparison libpurple/protocols/msn/msn.c @ 18063:926ccb104da0
disapproval of revision '1411afd7660760db59966c3a9f18e2adab8eb27e'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 16 Jun 2007 19:00:35 +0000 |
parents | 4ca97b26a8fb |
children | 5c1ed6296b56 d9d9283680a4 cb189eea2c59 db286cc82bd1 |
comparison
equal
deleted
inserted
replaced
18058:4ca97b26a8fb | 18063:926ccb104da0 |
---|---|
1461 #endif | 1461 #endif |
1462 | 1462 |
1463 purple_debug_info("msn", "In msn_got_info\n"); | 1463 purple_debug_info("msn", "In msn_got_info\n"); |
1464 | 1464 |
1465 /* Make sure the connection is still valid */ | 1465 /* Make sure the connection is still valid */ |
1466 if (g_list_find((GList *)purple_connections_get_all(), info_data->gc) == NULL) | 1466 if (g_list_find(purple_connections_get_all(), info_data->gc) == NULL) |
1467 { | 1467 { |
1468 purple_debug_warning("msn", "invalid connection. ignoring buddy info.\n"); | 1468 purple_debug_warning("msn", "invalid connection. ignoring buddy info.\n"); |
1469 g_free(info_data->name); | 1469 g_free(info_data->name); |
1470 g_free(info_data); | 1470 g_free(info_data); |
1471 return; | 1471 return; |
1881 PurpleNotifyUserInfo *user_info = info2_data->user_info; | 1881 PurpleNotifyUserInfo *user_info = info2_data->user_info; |
1882 char *photo_url_text = info2_data->photo_url_text; | 1882 char *photo_url_text = info2_data->photo_url_text; |
1883 | 1883 |
1884 /* Make sure the connection is still valid if we got here by fetching a photo url */ | 1884 /* Make sure the connection is still valid if we got here by fetching a photo url */ |
1885 if (url_text && (error_message != NULL || | 1885 if (url_text && (error_message != NULL || |
1886 g_list_find((GList *)purple_connections_get_all(), info_data->gc) == NULL)) | 1886 g_list_find(purple_connections_get_all(), info_data->gc) == NULL)) |
1887 { | 1887 { |
1888 purple_debug_warning("msn", "invalid connection. ignoring buddy photo info.\n"); | 1888 purple_debug_warning("msn", "invalid connection. ignoring buddy photo info.\n"); |
1889 g_free(stripped); | 1889 g_free(stripped); |
1890 g_free(url_buffer); | 1890 g_free(url_buffer); |
1891 g_free(user_info); | 1891 g_free(user_info); |
1980 if (acct_id) { | 1980 if (acct_id) { |
1981 acct = purple_accounts_find(acct_id, prpl); | 1981 acct = purple_accounts_find(acct_id, prpl); |
1982 if (acct && !purple_account_is_connected(acct)) | 1982 if (acct && !purple_account_is_connected(acct)) |
1983 acct = NULL; | 1983 acct = NULL; |
1984 } else { /* Otherwise find an active account for the protocol */ | 1984 } else { /* Otherwise find an active account for the protocol */ |
1985 const GList *l = purple_accounts_get_all(); | 1985 GList *l = purple_accounts_get_all(); |
1986 while (l) { | 1986 while (l) { |
1987 if (!strcmp(prpl, purple_account_get_protocol_id(l->data)) | 1987 if (!strcmp(prpl, purple_account_get_protocol_id(l->data)) |
1988 && purple_account_is_connected(l->data)) { | 1988 && purple_account_is_connected(l->data)) { |
1989 acct = l->data; | 1989 acct = l->data; |
1990 break; | 1990 break; |