diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-29 11:22:46 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-29 11:22:46 +0800 |
commit | 5544af605f9b9c5f1f36ea0e5c42fef1c88af97f (patch) | |
tree | d5585115252103dbf469cc8c9adee775323ff0ed /mbbsd/board.c | |
parent | cd3513b90098e739976c40819e24f14de3b7e33f (diff) | |
download | pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar.gz pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar.bz2 pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar.lz pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar.xz pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.tar.zst pttbbs-5544af605f9b9c5f1f36ea0e5c42fef1c88af97f.zip |
revert r3108, fix the problem by bound correction as moving fav instead.
(the problem still exists potentially.)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3111 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index d75a3a78..f9331bc2 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -675,6 +675,8 @@ choose_board(int newflag) char keyword[13] = "", buf[64]; setutmpmode(newflag ? READNEW : READBRD); + if( get_current_fav() == NULL ) + fav_load(); ++choose_board_depth; brdnum = 0; if (!cuser.userlevel) /* guest yank all boards */ @@ -871,7 +873,7 @@ choose_board(int newflag) brdnum = -1; break; case 'y': - if (get_current_fav() != NULL) { + if (get_current_fav() != NULL || !IS_LISTING_FAV()){ if (cuser.userlevel) yank_flag ^= 1; /* FAV <=> BRD */ else @@ -1273,11 +1275,7 @@ Boards(void) init_brdbuf(); class_bid = 0; LIST_FAV(); - if( get_current_fav() == NULL ) - fav_load(); - fav_enter(); choose_board(0); - fav_leave(); return 0; } |