diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-04-12 23:44:14 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-04-12 23:44:14 +0800 |
commit | 12c30338cd240fccb422b9d727762219a533994c (patch) | |
tree | 454e62c50beb425f6f76a821c7e73686b02106b7 | |
parent | 4cb5914ba65d0f4a1a77407c0a455eeab3b4634c (diff) | |
download | pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar.gz pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar.bz2 pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar.lz pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar.xz pttbbs-12c30338cd240fccb422b9d727762219a533994c.tar.zst pttbbs-12c30338cd240fccb422b9d727762219a533994c.zip |
Move numlogindays back to user->info.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5986 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 5 | ||||
-rw-r--r-- | pttbbs/mbbsd/user.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 51654609..93209834 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -3842,12 +3842,13 @@ view_postinfo(int ent GCC_UNUSED, const fileheader_t * fhdr, } #endif - if(fhdr->filemode & FILE_ANONYMOUS) + if(fhdr->filemode & FILE_ANONYMOUS) { + /* Note in MODE_SELECT, the multi may be fucked by ref number. */ /* When the file is anonymous posted, fhdr->multi.anon_uid is author. * see do_post_article() */ prints("│ 匿名管理編號: %u (同一人號碼會一樣)", (unsigned int)fhdr->multi.anon_uid + (unsigned int)currutmp->pid); - else { + } else { int m = query_file_money(fhdr); if(m < 0) diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index 47b1340e..858f1efc 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -205,11 +205,11 @@ user_display(const userec_t * u, int adminmode) prints("\t私人信箱: %d 封 (購買信箱: %d 封)\n", get_num_records(genbuf, sizeof(fileheader_t)), u->exmailbox); + prints("\t使用記錄: " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY + ,u->numlogindays); + prints(" / 文章 %d 篇\n", u->numposts); if (adminmode) { - prints("\t使用記錄: " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY - ,u->numlogindays); - prints(" / 文章 %d 篇\n", u->numposts); prints("\t最後上線: %s (掛站時每日增加) / %s\n", Cdate(&u->lastlogin), u->lasthost); } else { |