diff options
-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 { |