]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/acce.c
Indented with src/scripts/indent-emp.
[empserver] / src / lib / commands / acce.c
index 3c68874bf363a6a9a35cc855c4804b19912f1a2c..1c5f0421db4a6c9cbdb287cf7f91bc4fa0def059 100644 (file)
 int
 acce(void)
 {
 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;
 }
 }