diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-27 01:13:51 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-10-27 01:13:51 +0800 |
commit | a3bfbfbb7023119f33a53931fd2fa01369086b27 (patch) | |
tree | d2550fb11e592534da6a50cab0f3dad16f43e57d | |
parent | d839e1ec58637953063cc89b73cc0ceab8b3880d (diff) | |
download | pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar.gz pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar.bz2 pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar.lz pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar.xz pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.tar.zst pttbbs-a3bfbfbb7023119f33a53931fd2fa01369086b27.zip |
missing commit for r3231
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3232 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | util/boardlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/boardlist.c b/util/boardlist.c index a6758f46..35956a8e 100644 --- a/util/boardlist.c +++ b/util/boardlist.c @@ -10,6 +10,7 @@ $db{'BID.isboard'} 看 BID 是看板(1)或群組(0) $db{'BID.brdname'} 從 BID 查 brdname $db{'BID.title'} 查 BID 的中文板名 + $db{'BID.over18'} 是否為 18 禁 $db{'BID.BM.0'} .. $db{'BID.BM.4'} 該板板主 ID */ @@ -88,6 +89,8 @@ void dumpdetail(void) (bptr->brdattr & BRD_GROUPBOARD) ? 0 : 1); printf("$db{'%d.brdname'} = '%s';\n", bid, bptr->brdname); printf("$db{'%d.title'} = '%s';\n", bid, skipEscape(&bptr->title[7])); + printf("$db{'%d.over18'} = '%d';\n", + bid, (bptr->brdattr & BRD_OVER18) ? 1 : 0); strlcpy(BM, bptr->BM, sizeof(BM)); for( p = BM ; *p != 0 ; ++p ) if( !isalpha(*p) && !isdigit(*p) ) |