X-Git-Url: http://git.pond.sub.org/?p=empserver;a=blobdiff_plain;f=src%2Flib%2Fcommands%2Facce.c;h=1c5f0421db4a6c9cbdb287cf7f91bc4fa0def059;hp=3c68874bf363a6a9a35cc855c4804b19912f1a2c;hb=9b7adfbe;hpb=5f263a7753dc728809ff85c993af975f6c76e61e diff --git a/src/lib/commands/acce.c b/src/lib/commands/acce.c index 3c68874bf..1c5f0421d 100644 --- a/src/lib/commands/acce.c +++ b/src/lib/commands/acce.c @@ -49,44 +49,44 @@ int acce(void) { - struct natstr *natp; - struct natstr *np; - natid cn; - natid as; - int n; + struct natstr *natp; + struct natstr *np; + natid cn; + natid as; + int n; - if (player->argp[1] == 0) - as = player->cnum; - else { - if ((n = natarg(player->argp[1], "Which country? ")) < 0) { - pr("Bad country number\n"); - return RET_SYN; - } - as = (natid) n; + if (player->argp[1] == 0) + as = player->cnum; + else { + if ((n = natarg(player->argp[1], "Which country? ")) < 0) { + pr("Bad country number\n"); + return RET_SYN; } - if ((natp = getnatp(as)) == 0) { - pr("Bad country number %d\n", player->cnum); - return RET_SYN; + as = (natid)n; + } + if ((natp = getnatp(as)) == 0) { + pr("Bad country number %d\n", player->cnum); + return RET_SYN; + } + pr("\t%s Acceptance Status Report\t", cname(as)); + prdate(); + pr("\n Acceptance status %5s theirs\n", + player->cnum == as ? "yours" : " his"); + pr(" tel trty anno loan tel trty anno loan\n"); + for (cn = 1; cn < MAXNOC; cn++) { + if ((np = getnatp(cn)) == 0) + break; + if (cn == as) + continue; + if ((np->nat_stat & STAT_NORM) == 0 && + (np->nat_stat & STAT_SANCT) == 0) + continue; + if (opt_HIDDEN) { + if (!player->god && !getcontact(getnatp(player->cnum), cn)) + continue; } - pr("\t%s Acceptance Status Report\t", cname(as)); - prdate(); - pr("\n Acceptance status %5s theirs\n", - player->cnum == as ? "yours" : " his"); - pr(" tel trty anno loan tel trty anno loan\n"); - for (cn=1; cn < MAXNOC; cn++) { - if ((np = getnatp(cn)) == 0) - break; - if (cn == as) - continue; - if ((np->nat_stat & STAT_NORM) == 0 && - (np->nat_stat & STAT_SANCT) == 0) - continue; - if (opt_HIDDEN) { - if (!player->god && !getcontact(getnatp(player->cnum), cn)) - continue; - } - pr("%3d) %-14.14s ", cn, cname(cn)); - pr("%-9s %s\n", rejectname(natp, cn), rejectname(np, as)); - } - return RET_OK; + pr("%3d) %-14.14s ", cn, cname(cn)); + pr("%-9s %s\n", rejectname(natp, cn), rejectname(np, as)); + } + return RET_OK; }