summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-07-03 15:20:23 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-07-03 15:20:23 +0800
commitfe190eb8649d9f0fff3bf8445213664d2d2862a0 (patch)
treea0dbbb69ea87b3c52742ce18a8847e7aa9cc4f20
parenta8bea4ed729866db3c8cc3fd317ed82bfb2b8c8c (diff)
downloadpttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar.gz
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar.bz2
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar.lz
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar.xz
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.tar.zst
pttbbs-fe190eb8649d9f0fff3bf8445213664d2d2862a0.zip
* hidden boards won't be calculated by announce top list
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5084 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/util/mandex.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pttbbs/util/mandex.c b/pttbbs/util/mandex.c
index 14399476..de6174f5 100644
--- a/pttbbs/util/mandex.c
+++ b/pttbbs/util/mandex.c
@@ -182,11 +182,8 @@ output_chart(const boardinfo_t * board, const int nbrds)
if (strcmp(board[i].bname, bptr->brdname) != 0)
continue;
- if (bptr->brdattr & (BRD_BAD | BRD_NOCOUNT))
- continue;
-
- /* 板主設定不列入記錄 */
- if (bptr->brdattr & BRD_HIDE && !(bptr->brdattr & BRD_BMCOUNT))
+ // 隱板了別人看不到還有什麼好說的?
+ if (bptr->brdattr & (BRD_BAD | BRD_NOCOUNT | BRD_HIDE))
continue;
if (board[i].ndir + board[i].nfile < 5)