reject: Replace getrejects() by nat_accepts()
All callers of getrejects() also check whether the sender is a deity. Factor out the common code into nat_accepts(), and drop getrejects(). Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
5983fa2f6c
commit
9d153f547c
8 changed files with 12 additions and 16 deletions
|
@ -107,8 +107,7 @@ rea(void)
|
|||
if (res <= 0)
|
||||
break;
|
||||
if (*kind == 'a') {
|
||||
if ((getnatp(tgm.tel_from)->nat_stat != STAT_GOD
|
||||
&& (getrejects(tgm.tel_from, np) & REJ_ANNO))
|
||||
if ((!nat_accepts(np, tgm.tel_from, REJ_ANNO))
|
||||
|| tgm.tel_date < then) {
|
||||
res = tel_read_body(telfp, mbox, &tgm, NULL, NULL);
|
||||
if (res < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue