reject: New enum rej_comm for REJ_TELE & friends
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
9d153f547c
commit
4628661b40
6 changed files with 28 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue