Mercurial > pidgin
comparison src/blist.c @ 8175:f347c8d25cf5
[gaim-migrate @ 8889]
Make privacy stuff use an enum for different privacy options. This
started with a fix to make the box for "allow the users below" show
up when opening the privacy dialog when that option was selected.
It might be a good idea for a few people to check their privacy settings
after using this to make sure it's the same as what it used to be.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 28 Jan 2004 05:43:04 +0000 |
parents | 8f4ce853e685 |
children | 22b3974dc1af |
comparison
equal
deleted
inserted
replaced
8174:4c34db6996d1 | 8175:f347c8d25cf5 |
---|---|
1592 } else if (!strncmp("toc", c, 3)) { | 1592 } else if (!strncmp("toc", c, 3)) { |
1593 sscanf(c + strlen(c) - 1, "%d", &account->perm_deny); | 1593 sscanf(c + strlen(c) - 1, "%d", &account->perm_deny); |
1594 gaim_debug(GAIM_DEBUG_MISC, "toc blist", | 1594 gaim_debug(GAIM_DEBUG_MISC, "toc blist", |
1595 "permdeny: %d\n", account->perm_deny); | 1595 "permdeny: %d\n", account->perm_deny); |
1596 if (account->perm_deny == 0) | 1596 if (account->perm_deny == 0) |
1597 account->perm_deny = 1; | 1597 account->perm_deny = GAIM_PRIVACY_ALLOW_ALL; |
1598 } else if (*c == 'm') { | 1598 } else if (*c == 'm') { |
1599 sscanf(c + 2, "%d", &account->perm_deny); | 1599 sscanf(c + 2, "%d", &account->perm_deny); |
1600 gaim_debug(GAIM_DEBUG_MISC, "toc blist", | 1600 gaim_debug(GAIM_DEBUG_MISC, "toc blist", |
1601 "permdeny: %d\n", account->perm_deny); | 1601 "permdeny: %d\n", account->perm_deny); |
1602 if (account->perm_deny == 0) | 1602 if (account->perm_deny == 0) |
1603 account->perm_deny = 1; | 1603 account->perm_deny = GAIM_PRIVACY_ALLOW_ALL; |
1604 } | 1604 } |
1605 } while ((c = strtok(NULL, "\n"))); | 1605 } while ((c = strtok(NULL, "\n"))); |
1606 | 1606 |
1607 if(account->gc) { | 1607 if(account->gc) { |
1608 if(bud) { | 1608 if(bud) { |