diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-04 20:10:47 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-04 20:10:47 +0800 |
commit | 7ee575296c8d75fbac071ca70812df2212c64521 (patch) | |
tree | 48b301a2ffc3c130ae4d3816d219cdddc8aeeaff | |
parent | eb618f821e16c7c27e59f302b02ef309b4094f0f (diff) | |
download | pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar.gz pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar.bz2 pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar.lz pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar.xz pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.tar.zst pttbbs-7ee575296c8d75fbac071ca70812df2212c64521.zip |
allow bm to decide whether to up-ten-big
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1296 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 1 | ||||
-rw-r--r-- | util/mandex.c | 7 | ||||
-rw-r--r-- | util/poststat.c | 6 |
3 files changed, 12 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 45cf1aab..10c32588 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -158,6 +158,7 @@ typedef struct boardheader_t { #define BRD_TOP 000004000 /* 熱門看板群組 */ #define BRD_NORECOMMEND 000010000 /* 不可推薦 */ #define BRD_BLOG 000020000 /* BLOG */ +#define BRD_BMCOUNT 000040000 /* 板主設定列入記錄 */ #define TTLEN 64 /* Length of title */ #define FNLEN 33 /* Length of filename */ diff --git a/util/mandex.c b/util/mandex.c index ed8ee9c9..0b039653 100644 --- a/util/mandex.c +++ b/util/mandex.c @@ -274,8 +274,13 @@ int main(int argc, char* argv[]) break; } if (n >= numboards || - (bptr->brdattr & (BRD_BAD | BRD_NOCOUNT | BRD_HIDE))) + (bptr->brdattr & (BRD_BAD | BRD_NOCOUNT))) continue; + + /* 板主設定不列入記錄 */ + if (bptr->brdattr & BRD_HIDE && !(bptr->badattr & BRD_BMCOUNT)) + continue; + if (board[ch].ndir + board[ch].nfile < 5) break; fprintf(fndx, "%3d.[33m%15s[m %5d %7d %10d %6d [31m%-24.24s[m\n", diff --git a/util/poststat.c b/util/poststat.c index e46f77a2..08b17bc1 100644 --- a/util/poststat.c +++ b/util/poststat.c @@ -188,7 +188,11 @@ filter(board) bid = getbnum(board); if (get_record(".BRD", &bh, sizeof(bh), bid) == -1) return 1; - if (bh.brdattr & BRD_NOCOUNT || bh.brdattr & BRD_HIDE) + if (bh.brdattr & BRD_NOCOUNT) + return 1; + + /* 板主設定不列入記錄 */ + if (bh.brdattr & BRD_HIDE && !(bh.brdattr & BRD_BMCOUNT)) return 1; /* if (bh.brdattr & BRD_POSTMASK) |