]> git.pond.sub.org Git - empserver/commitdiff
(news): Add a comment to explain why argument is ignored when HIDDEN
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 7 Sep 2004 06:16:23 +0000 (06:16 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 7 Sep 2004 06:16:23 +0000 (06:16 +0000)
is on.

src/lib/commands/news.c

index e165ab2d3f5902266a65b08d48f2311f434cbb32..191c1b9b7d3856cb7a6e001b8cbf6c69eae29cf9 100644 (file)
@@ -71,6 +71,11 @@ news(void)
     (void)time(&now);
     natp = getnatp(player->cnum);
     then = natp->nat_newstim;
     (void)time(&now);
     natp = getnatp(player->cnum);
     then = natp->nat_newstim;
+    /*
+     * Don't disclose events before contact.  Proper solution would be
+     * to timestamp the contact.  Cheesy approximatation: disable old
+     * news.
+     */
     if (!opt_HIDDEN) {
        if (player->argp[1] != 0 && isdigit(*player->argp[1])) {
            delta = days(atoi(player->argp[1]));
     if (!opt_HIDDEN) {
        if (player->argp[1] != 0 && isdigit(*player->argp[1])) {
            delta = days(atoi(player->argp[1]));