diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-21 00:42:17 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-21 00:42:17 +0800 |
commit | 9e4a1d72b07738df371f4403c537366b79c99ffe (patch) | |
tree | 29122505f771f197a95ea9c96b1f44e570c0cf2a /mbbsd | |
parent | de53988dcc23dc8e7eb588984570f6d1c9b7dab8 (diff) | |
download | pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar.gz pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar.bz2 pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar.lz pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar.xz pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.tar.zst pttbbs-9e4a1d72b07738df371f4403c537366b79c99ffe.zip |
- display and hint the approx value of register requests
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4319 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 054b0e0c..30ae1f5e 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -57,10 +57,12 @@ showtitle(const char *title, const char *mid) mid = " 你有新信件 "; mid_attr = ANSI_COLOR(41;5); } else if ( HasUserPerm(PERM_ACCTREG) ) { + // TODO cache this value? int nreg = regform_estimate_queuesize(); if(nreg > 100) { - sprintf(buf, " 有 %03d 未審核 ", nreg); + nreg -= (nreg % 10); + sprintf(buf, " 超過 %03d 篇未審核 ", nreg); mid_attr = ANSI_COLOR(41;5); mid = buf; } |