]> git.pond.sub.org Git - empserver/commitdiff
(zdon): Display current number of missed updates and number of
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 5 Feb 2006 19:19:00 +0000 (19:19 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Sun, 5 Feb 2006 19:19:00 +0000 (19:19 +0000)
missed updates before vetoing begins.

src/lib/commands/zdon.c

index a5905fce9003d3102d7b240890623553b3d56b63..11d2dc1c7eea19a9638fef7d7d93f927fe65cee8 100644 (file)
@@ -109,12 +109,12 @@ zdon(void)
        }
     }
 
+    if (!(natp = getnatp(whichcnum))) {
+       pr("Unable to find country. %d\n", whichcnum);
+       pr("Notify the Deity.\n");
+       return RET_FAIL;
+    }
     if (!checking) {
-       if (!(natp = getnatp(whichcnum))) {
-           pr("Unable to find country. %d\n", whichcnum);
-           pr("Notify the Deity.\n");
-           return RET_FAIL;
-       }
        if (wantupd) {
            if (influx(natp)) {
                pr("Unable to request an update as the country is in flux\n");
@@ -137,6 +137,10 @@ zdon(void)
            pr("You want an update.\n");
        } else
            pr("You DON'T want an update, yet.\n");
+       pr("You have missed requesting an demand update %d times.\n",
+          natp->nat_missed);
+       pr("It takes %d misses to veto an demand update.\n",
+          update_missed);
     }
 
     pr("%d of a total of %d lunatics want an update.\n", totwant, totpop);