Communications from deities can't be rejected, but the accept command
fails to consider that detail. Should not normally matter, because
the reject command doesn't let you reject deities. Fix it anyway.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
{
static char *yes_no[] = { "YES", " NO" };
int rej = getrejects(from, to);
+ int from_deity = getnatp(from)->nat_stat == STAT_GOD;
pr(" %s %s %s",
- yes_no[(rej & REJ_TELE) != 0],
- yes_no[(rej & REJ_ANNO) != 0],
- yes_no[(rej & REJ_LOAN) != 0]);
+ yes_no[!from_deity && (rej & REJ_TELE)],
+ yes_no[!from_deity && (rej & REJ_ANNO)],
+ yes_no[!from_deity && (rej & REJ_LOAN)]);
}