diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 10:23:09 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-13 10:23:09 +0800 |
commit | d67d47b0f57b71f2bf8321940e49dc13fadb8bc9 (patch) | |
tree | c3da4024759b13ef92dca44c6557a54b94113e5f | |
parent | 23a7ad451a3b75610f09864a5689bab8badf0d03 (diff) | |
download | pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar.gz pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar.bz2 pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar.lz pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar.xz pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.tar.zst pttbbs-d67d47b0f57b71f2bf8321940e49dc13fadb8bc9.zip |
* also disable URL display in restricted reading / hidden boards
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4587 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 8099e60d..f52d97f8 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -3498,10 +3498,12 @@ view_postinfo(int ent, const fileheader_t * fhdr, const char *direct, int crs_ln { prints("│\n"); } - else if (bp->brdattr & BRD_OVER18) + else if ((bp->brdattr & (BRD_HIDE | BRD_OVER18)) || + (bp->level && !(bp->brdattr & BRD_POSTMASK)) // !POSTMASK = restricted read + ) { // over18 boards do not provide URL. - prints("│ 本看板不提供" URL_DISPLAYNAME " \n"); + prints("│ 本看板目前不提供" URL_DISPLAYNAME " \n"); } else { |