summaryrefslogtreecommitdiffstats
path: root/mbbsd/fav.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:24:54 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-03 17:24:54 +0800
commit828ac5e72830a3620f8831002b989d4498ae44cc (patch)
tree5af56ed9ab737ac5da9f36a2d071cf90f3b24b06 /mbbsd/fav.c
parenta7bfcd9e4aff3dcec474ff42643c4bd70bc12334 (diff)
downloadpttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.gz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.bz2
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.lz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.xz
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.tar.zst
pttbbs-828ac5e72830a3620f8831002b989d4498ae44cc.zip
clean up non-exist board if set SHM->cleanboard
WARNING, SHM modified git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1452 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r--mbbsd/fav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index fb78006a..4358f425 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -237,7 +237,7 @@ static void rebuild_fav(fav_t *fp)
switch (get_item_type(ft)){
case FAVT_BOARD:
bid = cast_board(ft)->bid;
- if (!validboard(bid - 1))
+ if (SHM->cleanboard && bcache[bid - 1].brdname[0])
continue;
break;
case FAVT_LINE: