diff options
Diffstat (limited to 'mbbsd')
-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) |