From: mar Date: Tue, 22 Nov 1988 12:25:22 +0000 (+0000) Subject: fixed logic determining which lists of member to display X-Git-Tag: KREL1~88 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/5151666e1646e9e331a9c5793642c850ea65872c fixed logic determining which lists of member to display --- diff --git a/clients/moira/lists.c b/clients/moira/lists.c index a3f25c4f..e4b60c0f 100644 --- a/clients/moira/lists.c +++ b/clients/moira/lists.c @@ -732,8 +732,8 @@ ListByMember() while (elem != NULL) { info = (char**) elem->q_data; - if (maillist != TRUE || !strcmp(info[GLOM_MAILLIST], "1")) - if (group != TRUE || !strcmp(info[GLOM_GROUP], "1")) + if ((maillist == TRUE && !strcmp(info[GLOM_MAILLIST], "1")) || + (group == TRUE && !strcmp(info[GLOM_GROUP], "1"))) Put_message(info[GLOM_NAME]); elem = elem->q_forw; }