diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-09-18 13:04:33 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2011-09-18 13:04:33 +0800 |
commit | b75cf7c84b4f4b36395bedbdd68815939935c78a (patch) | |
tree | 8349e14b6eb0ec06e1dcbc2ea7fc7ae0cf5d518d | |
parent | 896015bc375692dfc1b5dff65e6264d689e0b99f (diff) | |
download | pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar.gz pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar.bz2 pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar.lz pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar.xz pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.tar.zst pttbbs-b75cf7c84b4f4b36395bedbdd68815939935c78a.zip |
refine message in limits
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5399 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/cal.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/pttbbs/mbbsd/cal.c b/pttbbs/mbbsd/cal.c index 21fa20ed..76a135a4 100644 --- a/pttbbs/mbbsd/cal.c +++ b/pttbbs/mbbsd/cal.c @@ -13,26 +13,27 @@ char *get_restriction_reason( syncnow(); if (firstlogin > (now - limits_regtime * MONTH_SECONDS)) { - snprintf(msg, sz_msg, "註冊時間(%d天) 未滿 %d 天", - (now - firstlogin) / MONTH_SECONDS * 30, - limits_regtime * 30); + snprintf(msg, sz_msg, "註冊時間未滿 %d 天(目前%d天)", + limits_regtime * 30, + (now - firstlogin) / MONTH_SECONDS * 30); return msg; } if (numlogindays / 10 < limits_logins) { - snprintf(msg, sz_msg, STR_LOGINDAYS "(%d" STR_LOGINDAYS_QTY - ") 未滿 %d " STR_LOGINDAYS, - numlogindays, limits_logins * 10); + snprintf(msg, sz_msg, + STR_LOGINDAYS "未滿 %d " STR_LOGINDAYS + "(目前%d" STR_LOGINDAYS_QTY ") ", + limits_logins * 10, numlogindays); return msg; } if (numposts / 10 < limits_posts) { - snprintf(msg, sz_msg, "各看板有效文章(%d篇) 未滿 %d 篇", - numposts, limits_posts * 10); + snprintf(msg, sz_msg, "各看板有效文章未滿 %d 篇(目前%d篇)", + limits_posts * 10, numposts); return msg; } #ifdef ASSESS if (badpost > (255 - limits_badpost)) { - snprintf(msg, sz_msg, "劣文(%d篇)超過 %d 篇", - badpost, 255 - limits_badpost); + snprintf(msg, sz_msg, "劣文超過 %d 篇(目前%d篇)", + 255 - limits_badpost, badpost); return msg; } #endif |