diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-02-21 10:19:15 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2012-02-21 10:19:15 +0800 |
commit | c50dd057499d68707fdd0c9c6f8b785d59dd70e2 (patch) | |
tree | f2a1c0cf18de65814946305d35d95e433b2daa0a | |
parent | 235b0b60ec930c096f4a83391671d5a7ef3f2a7c (diff) | |
download | pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar.gz pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar.bz2 pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar.lz pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar.xz pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.tar.zst pttbbs-c50dd057499d68707fdd0c9c6f8b785d59dd70e2.zip |
Update the popularity inside board.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5568 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-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], |