comparison libpurple/protocols/novell/novell.c @ 32707:f75041cb3fec

Convert libpurple and protocol prpl's to use the purple_account_* accessor functions.
author andrew.victor@mxit.com
date Sat, 01 Oct 2011 18:21:43 +0000
parents c6943fd38d44
children 2ec94166be43
comparison
equal deleted inserted replaced
32706:6e27091869eb 32707:f75041cb3fec
1402 return; 1402 return;
1403 1403
1404 /* Set the Purple privacy setting */ 1404 /* Set the Purple privacy setting */
1405 if (user->default_deny) { 1405 if (user->default_deny) {
1406 if (user->allow_list == NULL) { 1406 if (user->allow_list == NULL) {
1407 gc->account->perm_deny = PURPLE_PRIVACY_DENY_ALL; 1407 purple_account_set_privacy_type(gc->account, PURPLE_PRIVACY_DENY_ALL);
1408 } else { 1408 } else {
1409 gc->account->perm_deny = PURPLE_PRIVACY_ALLOW_USERS; 1409 purple_account_set_privacy_type(gc->account, PURPLE_PRIVACY_ALLOW_USERS);
1410 } 1410 }
1411 } else { 1411 } else {
1412 if (user->deny_list == NULL) { 1412 if (user->deny_list == NULL) {
1413 gc->account->perm_deny = PURPLE_PRIVACY_ALLOW_ALL; 1413 purple_account_set_privacy_type(gc->account, PURPLE_PRIVACY_ALLOW_ALL);
1414 } else { 1414 } else {
1415 gc->account->perm_deny = PURPLE_PRIVACY_DENY_USERS; 1415 purple_account_set_privacy_type(gc->account, PURPLE_PRIVACY_DENY_USERS);
1416 } 1416 }
1417 } 1417 }
1418 1418
1419 /* Add stuff */ 1419 /* Add stuff */
1420 for (node = user->allow_list; node; node = node->next) { 1420 for (node = user->allow_list; node; node = node->next) {
3251 _show_privacy_locked_error(gc, user); 3251 _show_privacy_locked_error(gc, user);
3252 _sync_privacy_lists(user); 3252 _sync_privacy_lists(user);
3253 return; 3253 return;
3254 } 3254 }
3255 3255
3256 switch (gc->account->perm_deny) { 3256 switch (purple_account_get_privacy_type(gc->account)) {
3257 3257
3258 case PURPLE_PRIVACY_ALLOW_ALL: 3258 case PURPLE_PRIVACY_ALLOW_ALL:
3259 rc = nm_send_set_privacy_default(user, FALSE, 3259 rc = nm_send_set_privacy_default(user, FALSE,
3260 _set_privacy_default_resp_cb, NULL); 3260 _set_privacy_default_resp_cb, NULL);
3261 _check_for_disconnect(user, rc); 3261 _check_for_disconnect(user, rc);