summaryrefslogtreecommitdiffstats
path: root/mbbsd/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/menu.c')
-rw-r--r--mbbsd/menu.c4
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;
}