diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-04 21:43:03 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-04 21:43:03 +0800 |
commit | d0f08bb6f0acda3c6872e3aaa7d8cf43498dd97f (patch) | |
tree | 2ab06e7741b46e2d84ccb5b3b775a70f71a87555 | |
parent | 63561c0e9333e5d72f54337b8df420fe2e2cdbd8 (diff) | |
download | pttbbs-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.c | 4 |
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) |