From: Markus Armbruster Date: Tue, 7 Sep 2004 06:16:23 +0000 (+0000) Subject: (news): Add a comment to explain why argument is ignored when HIDDEN X-Git-Tag: v4.2.18~7 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=d4fe345edbb2b6a2bb435a78a26b7bb3bdf59fc0 (news): Add a comment to explain why argument is ignored when HIDDEN is on. --- diff --git a/src/lib/commands/news.c b/src/lib/commands/news.c index e165ab2d3..191c1b9b7 100644 --- a/src/lib/commands/news.c +++ b/src/lib/commands/news.c @@ -71,6 +71,11 @@ news(void) (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]));