diff options
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index c2789591..65a7d641 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -537,12 +537,17 @@ readtitle(void) outs("[←]離開 [→]閱\讀 [Ctrl-P]發表文章 [d]刪除 [z]精華區 [i]看板資訊/設定 [h]說明\n"); buf[0] = 0; +#ifdef DISABLE_HIDDEN_BOARD_POPULARITY + if (bp->brdattr & BRD_HIDE) + snprintf(buf, sizeof(buf), "[隱板]"); + else +#endif #ifdef USE_COOLDOWN - if (!(bp->brdattr & BRD_COOLDOWN)) + if (bp->brdattr & BRD_COOLDOWN) + snprintf(buf, sizeof(buf), "[靜]"); + else #endif - { - snprintf(buf, sizeof(buf), "人氣:%d ", SHM->bcache[currbid - 1].nuser); - } + snprintf(buf, sizeof(buf), "人氣:%d ", SHM->bcache[currbid - 1].nuser); vbarf(ANSI_REVERSE " 編號 %s 作 者 文 章 標 題\t%s ", IS_LISTING_MONEY ? listmode_desc[LISTMODE_MONEY] : listmode_desc[currlistmode], |