reject: New enum rej_comm for REJ_TELE & friends

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2016-10-31 11:44:04 +01:00
parent 9d153f547c
commit 4628661b40
6 changed files with 28 additions and 19 deletions

View file

@ -90,10 +90,10 @@ relations_with(natid us, natid them)
}
int
nat_accepts(struct natstr *np, natid them, int what)
nat_accepts(struct natstr *np, natid them, enum rej_comm what)
{
return getnatp(them)->nat_stat == STAT_GOD
|| !(np->nat_rejects[them] & what);
|| !(np->nat_rejects[them] & bit(what));
}
void