summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-26 13:28:34 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-26 13:28:34 +0800
commitb860b474520a4f30b20c829d507d60a90338aadc (patch)
treea9c8dd33309cf51210fdf5683248350590fab7f0 /mbbsd/board.c
parentacc75108f01a8c7f090deb6a61f6923246f9ff02 (diff)
downloadpttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar.gz
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar.bz2
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar.lz
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar.xz
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.tar.zst
pttbbs-b860b474520a4f30b20c829d507d60a90338aadc.zip
- board_config: many people get confused about "one month", let's display "30 days" instead.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4021 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index b8d2ce01..1376e0da 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -13,7 +13,7 @@
#define NBRD_SYMBOLIC 64
#define TITLE_MATCH(bptr, key) ((key)[0] && !strcasestr((bptr)->title, (key)))
-
+#define MONTH_SECONDS (86400*30)
#define B_TOTAL(bptr) (SHM->total[(bptr)->bid - 1])
#define B_LASTPOSTTIME(bptr) (SHM->lastposttime[(bptr)->bid - 1])
@@ -439,9 +439,13 @@ b_config(void)
move_ansi(ipostres++, COLPOSTRES);
i = bp->post_limit_regtime;
attr = (cuser.firstlogin >
- (now - (time4_t)bp->post_limit_regtime * 2592000)) ? 1 : 0;
+ (now - (time4_t)bp->post_limit_regtime * MONTH_SECONDS)) ? 1 : 0;
if (attr) outs(ANSI_COLOR(31));
- prints("註冊時間 %d 個月以上",i);
+ outs("註冊時間 ");
+ if (i < 5)
+ prints("%d 天以上", i*30);
+ else
+ prints("%d 個月以上",i);
if (attr) outs(ANSI_RESET);
hasres = 1;
}