Mercurial > pidgin
changeset 752:870fcc64a709
[gaim-migrate @ 762]
la la la. i think the permit/deny stuff works for toc now.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 23 Aug 2000 23:52:12 +0000 |
parents | a022b57ed84a |
children | cd62f69d187e |
files | src/server.c |
diffstat | 1 files changed, 10 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Wed Aug 23 23:08:36 2000 +0000 +++ b/src/server.c Wed Aug 23 23:52:12 2000 +0000 @@ -343,26 +343,16 @@ void serv_add_permit(char *name) { - if (!USE_OSCAR) { - char buf[1024]; - g_snprintf(buf, sizeof(buf), "toc_add_permit %s", normalize(name)); - sflap_send(buf, -1, TYPE_DATA); - } else { - serv_set_permit_deny(); - } + permdeny = 3; + build_permit_tree(); } void serv_add_deny(char *name) { - if (!USE_OSCAR) { - char buf[1024]; - g_snprintf(buf, sizeof(buf), "toc_add_deny %s", normalize(name)); - sflap_send(buf, -1, TYPE_DATA); - } else { - serv_set_permit_deny(); - } + permdeny = 4; + build_permit_tree(); } @@ -376,11 +366,15 @@ switch (permdeny) { case PERMIT_ALL: - sprintf(buf, "toc_add_deny %s", current_user->username); + sprintf(buf, "toc_add_permit %s", current_user->username); + sflap_send(buf, -1, TYPE_DATA); + sprintf(buf, "toc_add_deny"); sflap_send(buf, -1, TYPE_DATA); break; case PERMIT_NONE: - sprintf(buf, "toc_add_permit %s", current_user->username); + sprintf(buf, "toc_add_deny %s", current_user->username); + sflap_send(buf, -1, TYPE_DATA); + sprintf(buf, "toc_add_permit"); sflap_send(buf, -1, TYPE_DATA); break; case PERMIT_SOME: @@ -640,7 +634,6 @@ struct conversation *cnv; int is_idle = -1; int new_conv = 0; - char *nname; #ifdef GAIM_PLUGINS GList *c = callbacks;