comparison libpurple/protocols/msn/contact.c @ 32708:10e5000326a5

Convert code to use the purple_account accessor functions.
author andrew.victor@mxit.com
date Sat, 01 Oct 2011 21:04:35 +0000
parents 9eb5b85c7089
children
comparison
equal deleted inserted replaced
32707:f75041cb3fec 32708:10e5000326a5
966 g_return_if_fail(session != NULL); 966 g_return_if_fail(session != NULL);
967 967
968 purple_debug_misc("msn", "Got the Address Book!\n"); 968 purple_debug_misc("msn", "Got the Address Book!\n");
969 969
970 if (msn_parse_addressbook(session, resp->xml)) { 970 if (msn_parse_addressbook(session, resp->xml)) {
971 msn_send_privacy(session->account->gc); 971 msn_send_privacy(purple_account_get_connection(session->account));
972 msn_notification_dump_contact(session); 972 msn_notification_dump_contact(session);
973 } else { 973 } else {
974 /* This is making us loop infinitely when we fail to parse the 974 /* This is making us loop infinitely when we fail to parse the
975 address book, disable for now (we should re-enable when we 975 address book, disable for now (we should re-enable when we
976 send timestamps) 976 send timestamps)
1249 if (user->invite_message) { 1249 if (user->invite_message) {
1250 char *tmp; 1250 char *tmp;
1251 body = g_markup_escape_text(user->invite_message, -1); 1251 body = g_markup_escape_text(user->invite_message, -1);
1252 1252
1253 /* Ignore the cast, we treat it as const anyway. */ 1253 /* Ignore the cast, we treat it as const anyway. */
1254 tmp = (char *)purple_connection_get_display_name(session->account->gc); 1254 tmp = (char *)purple_connection_get_display_name(purple_account_get_connection(session->account));
1255 tmp = tmp ? g_markup_escape_text(tmp, -1) : g_strdup(""); 1255 tmp = tmp ? g_markup_escape_text(tmp, -1) : g_strdup("");
1256 1256
1257 invite = g_strdup_printf(MSN_CONTACT_INVITE_MESSAGE_XML, body, tmp); 1257 invite = g_strdup_printf(MSN_CONTACT_INVITE_MESSAGE_XML, body, tmp);
1258 1258
1259 g_free(body); 1259 g_free(body);