summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-04 21:43:03 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-04 21:43:03 +0800
commitd0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f (patch)
tree2ab06e7741b46e2d84ccb5b3b775a70f71a87555
parent63561c0e9333e5d72f54337b8df420fe2e2cdbd8 (diff)
downloadpttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar.gz
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar.bz2
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar.lz
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar.xz
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.tar.zst
pttbbs-d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f.zip
Wrong condition of cleaning invisible boards.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1463 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/fav.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 25584c6f..1683d7f4 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -233,7 +233,7 @@ 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]))
+ if( clean_invisible && !Ben_Perm(&bcache[cast_board(ft)->bid - 1]))
continue;
/*
bid = cast_board(ft)->bid;
@@ -432,7 +432,7 @@ int fav_save(void)
#endif
if (fp == NULL)
return -1;
- cleanup();
+ rebuild_fav(get_fav_root(), 0);
setuserfile(buf, FAV4);
fd = open(buf, O_CREAT | O_TRUNC | O_WRONLY, 0600);
if (fd < 0)