diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-05 22:22:59 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-09-05 22:22:59 +0800 |
commit | 2933c380c0ffa5422cc5bc74e23e6a92440cca92 (patch) | |
tree | d346f2af1011ebee44f40484181b93de42cae6a1 /mbbsd/user.c | |
parent | f57bb85ab4790b70354c84e74aabebf4b72c5624 (diff) | |
download | pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar.gz pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar.bz2 pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar.lz pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar.xz pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.tar.zst pttbbs-2933c380c0ffa5422cc5bc74e23e6a92440cca92.zip |
* change display name of numlogindays to macro (we may change it again in future)
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4809 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 056c2cda..5f94c135 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -173,7 +173,7 @@ user_display(const userec_t * u, int adminmode) prints("\t\t認證資料: %s\n", u->justify); } - prints("\t\t上站文章: 上站資歷 %d / 文章 %d 篇\n", + prints("\t\t上站文章: " STR_LOGINDAYS " %d / 文章 %d 篇\n", u->numlogindays, u->numposts); sethomedir(genbuf, u->userid); @@ -850,13 +850,13 @@ uinfo_query(const char *orig_uid, int adminmode, int unum) do { int max_days = (x.lastlogin - x.firstlogin) / DAY_SECONDS; snprintf(genbuf, sizeof(genbuf), "%d", x.numlogindays); - if (getdata_str(y++, 0, "上線資歷:", buf, 10, DOECHO, genbuf)) + if (getdata_str(y++, 0, STR_LOGINDAYS, buf, 10, DOECHO, genbuf)) if ((tmp = atoi(buf)) >= 0) x.numlogindays = tmp; if (x.numlogindays > max_days) { x.numlogindays = max_days; - vmsgf("根據此使用者最後上線時間,資歷最大值為 %d.", max_days); + vmsgf("根據此使用者最後上線時間,最大值為 %d.", max_days); move(--y, 0); clrtobot(); continue; } |