Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 4780:5d4243c013a2
[gaim-migrate @ 5100]
Mom! Sean's making me uneasy! Make him stop!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 14 Mar 2003 23:46:32 +0000 |
parents | 443aade63ef8 |
children | fd69b80cb349 |
comparison
equal
deleted
inserted
replaced
4779:443aade63ef8 | 4780:5d4243c013a2 |
---|---|
4486 | 4486 |
4487 /* If changes were made, then flush buddy list to file */ | 4487 /* If changes were made, then flush buddy list to file */ |
4488 if (export) | 4488 if (export) |
4489 gaim_blist_save(); | 4489 gaim_blist_save(); |
4490 | 4490 |
4491 #if 0 | |
4491 { /* Add from local list to server list */ | 4492 { /* Add from local list to server list */ |
4492 GaimBlistNode *gnode, *bnode; | 4493 GaimBlistNode *gnode, *bnode; |
4493 struct group *group; | 4494 struct group *group; |
4494 struct buddy *buddy; | 4495 struct buddy *buddy; |
4495 struct gaim_buddy_list *blist; | 4496 struct gaim_buddy_list *blist; |
4518 aim_ssi_addbuddy(sess, od->conn, buddy->name, group->name, gaim_get_buddy_alias_only(buddy), NULL, NULL, 0); | 4519 aim_ssi_addbuddy(sess, od->conn, buddy->name, group->name, gaim_get_buddy_alias_only(buddy), NULL, NULL, 0); |
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 #endif | |
4542 /* Presence settings (idle time visibility) */ | 4541 /* Presence settings (idle time visibility) */ |
4543 if ((tmp = aim_ssi_getpresence(sess->ssi.local)) != 0xFFFFFFFF) | 4542 if ((tmp = aim_ssi_getpresence(sess->ssi.local)) != 0xFFFFFFFF) |
4544 if (report_idle && !(tmp & 0x400)) | 4543 if (report_idle && !(tmp & 0x400)) |
4545 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400); | 4544 aim_ssi_setpresence(sess, fr->conn, tmp | 0x400); |
4546 } /* end adding buddies from local list to server list */ | 4545 } /* end adding buddies from local list to server list */ |
4546 #endif | |
4547 | 4547 |
4548 { /* Check for maximum number of buddies */ | 4548 { /* Check for maximum number of buddies */ |
4549 GSList *groups = gaim_blist_groups(), *cur; | 4549 GSList *groups = gaim_blist_groups(), *cur; |
4550 for (cur=groups, tmp=0; cur; cur=g_slist_next(cur)) { | 4550 for (cur=groups, tmp=0; cur; cur=g_slist_next(cur)) { |
4551 struct group* gr = (struct group*)cur->data; | 4551 struct group* gr = (struct group*)cur->data; |