summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-10 14:39:32 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-10 14:39:32 +0800
commite293b3daae5393bdf6a90eee2a8d1d3f6bb663bd (patch)
tree5f3b7f96260ae8fec397a946a5a6cba7740fbbef /mbbsd
parent394f5dd03c48e260d0aea6af8faa5b3571953500 (diff)
downloadpttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar.gz
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar.bz2
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar.lz
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar.xz
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.tar.zst
pttbbs-e293b3daae5393bdf6a90eee2a8d1d3f6bb663bd.zip
rm deleted board in cleanup
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1478 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/fav.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 6b688789..26c2f02d 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -221,11 +221,14 @@ inline int valid_item(fav_type_t *ft){
static void rebuild_fav(fav_t *fp, int clean_invisible)
{
int i, j, nData;
+ boardheader_t *bp;
fav_type_t *ft;
+
fav_number = 0;
fp->lineID = fp->folderID = 0;
fp->nLines = fp->nFolders = fp->nBoards = 0;
nData = fp->DataTail;
+
for (i = 0, j = 0; i < nData; i++){
if (!(fp->favh[i].attr & FAVH_FAV))
continue;
@@ -233,13 +236,11 @@ static void rebuild_fav(fav_t *fp, int clean_invisible)
ft = &fp->favh[i];
switch (get_item_type(ft)){
case FAVT_BOARD:
- if( clean_invisible && !Ben_Perm(&bcache[cast_board(ft)->bid - 1]))
+ bp = &bcache[cast_board(ft)->bid - 1];
+ if (!bp->brdname[0])
continue;
-/*
- bid = cast_board(ft)->bid;
- if (SHM->GV2.e.cleanboard && bcache[bid - 1].brdname[0])
+ if ( clean_invisible && !Ben_Perm(bp))
continue;
-*/
break;
case FAVT_LINE:
cast_line(ft)->lid = fp->lineID + 1;