Mercurial > pidgin.yaz
changeset 4351:bd1db4c2e00b
[gaim-migrate @ 4616]
make sure we tell the server when we import buddies
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 20 Jan 2003 00:29:46 +0000 |
parents | 7142f59bec2c |
children | d0cef2cc9660 |
files | src/list.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/list.c Sun Jan 19 23:08:19 2003 +0000 +++ b/src/list.c Mon Jan 20 00:29:46 2003 +0000 @@ -244,6 +244,7 @@ { char *c; char current[256]; + GList *bud = NULL; if (config != NULL) { @@ -279,6 +280,7 @@ sw[i] = '\0'; if (!find_buddy(user, nm)) { add_buddy(user, current, nm, sw); + bud = g_list_append(bud, c + 2); } } else if (*c == 'p') { gaim_privacy_permit_add(user, c + 2); @@ -296,6 +298,13 @@ user->permdeny = 1; } } while ((c = strtok(NULL, "\n"))); + + if(user->gc) { + if(bud) + serv_add_buddies(user->gc, bud); + serv_set_permit_deny(user->gc); + } + g_list_free(bud); } }