]> git.pond.sub.org Git - empserver/commitdiff
(news): Fix rev. 1.13: fail command before printing headlines.
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 Jan 2006 17:13:25 +0000 (17:13 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 Jan 2006 17:13:25 +0000 (17:13 +0000)
src/lib/commands/news.c

index eb356fcc7d37f5c88d1cf7770c2c1611379a1948..75cd68313a83916b9a4fdc5db504708c88bdca18 100644 (file)
@@ -71,7 +71,6 @@ news(void)
        return RET_SYN;
     memset(page_has_news, 0, sizeof(page_has_news));
     memset(sectors_taken, 0, sizeof(sectors_taken));
-    (void)head();
     (void)time(&now);
     natp = getnatp(player->cnum);
     then = natp->nat_newstim;
@@ -89,6 +88,7 @@ news(void)
        then = now - delta;
     }
     natp->nat_newstim = now;
+    head();
     pr("\nThe details of Empire news since %s", ctime(&then));
     while (nxtitem(&nstr, &nws)) {
        if (nws.nws_when < then)