comparison src/protocols/oscar/oscar.c @ 4779:443aade63ef8

[gaim-migrate @ 5099] How now, brown cow? committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 14 Mar 2003 23:38:58 +0000
parents 85c6c3a60503
children 5d4243c013a2
comparison
equal deleted inserted replaced
4778:85c6c3a60503 4779:443aade63ef8
4392 va_end(ap); */ 4392 va_end(ap); */
4393 4393
4394 debug_printf("ssi: syncing local list and server list\n"); 4394 debug_printf("ssi: syncing local list and server list\n");
4395 4395
4396 /* Clean the buddy list */ 4396 /* Clean the buddy list */
4397 /* aim_ssi_cleanlist(sess, fr->conn); */ 4397 aim_ssi_cleanlist(sess, fr->conn);
4398 4398
4399 /* Add from server list to local list */ 4399 /* Add from server list to local list */
4400 for (curitem=sess->ssi.local; curitem; curitem=curitem->next) { 4400 for (curitem=sess->ssi.local; curitem; curitem=curitem->next) {
4401 switch (curitem->type) { 4401 switch (curitem->type) {
4402 case 0x0000: { /* Buddy */ 4402 case 0x0000: { /* Buddy */
4518 aim_ssi_addbuddy(sess, od->conn, buddy->name, group->name, gaim_get_buddy_alias_only(buddy), NULL, NULL, 0); 4518 aim_ssi_addbuddy(sess, od->conn, buddy->name, group->name, gaim_get_buddy_alias_only(buddy), NULL, NULL, 0);
4519 } 4519 }
4520 } 4520 }
4521 } 4521 }
4522 } 4522 }
4523 4523 #if 0
4524 /* Permit list */ 4524 /* Permit list */
4525 if (gc->account->permit) { 4525 if (gc->account->permit) {
4526 for (cur=gc->account->permit; cur; cur=cur->next) 4526 for (cur=gc->account->permit; cur; cur=cur->next)
4527 if (!aim_ssi_itemlist_finditem(sess->ssi.local, NULL, cur->data, AIM_SSI_TYPE_PERMIT)) { 4527 if (!aim_ssi_itemlist_finditem(sess->ssi.local, NULL, cur->data, AIM_SSI_TYPE_PERMIT)) {
4528 debug_printf("ssi: adding permit %s from local list to server list\n", (char *)cur->data); 4528 debug_printf("ssi: adding permit %s from local list to server list\n", (char *)cur->data);
4536 if (!aim_ssi_itemlist_finditem(sess->ssi.local, NULL, cur->data, AIM_SSI_TYPE_DENY)) { 4536 if (!aim_ssi_itemlist_finditem(sess->ssi.local, NULL, cur->data, AIM_SSI_TYPE_DENY)) {
4537 debug_printf("ssi: adding deny %s from local list to server list\n", (char *)cur->data); 4537 debug_printf("ssi: adding deny %s from local list to server list\n", (char *)cur->data);
4538 aim_ssi_adddeny(sess, od->conn, cur->data); 4538 aim_ssi_adddeny(sess, od->conn, cur->data);
4539 } 4539 }
4540 } 4540 }
4541 4541 #endif
4542 /* Presence settings (idle time visibility) */ 4542 /* Presence settings (idle time visibility) */
4543 if ((tmp = aim_ssi_getpresence(sess->ssi.local)) != 0xFFFFFFFF) 4543 if ((tmp = aim_ssi_getpresence(sess->ssi.local)) != 0xFFFFFFFF)
4544 if (report_idle && !(tmp & 0x400)) 4544 if (report_idle && !(tmp & 0x400))
4545 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400); 4545 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400);
4546 } /* end adding buddies from local list to server list */ 4546 } /* end adding buddies from local list to server list */