diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 23:33:57 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-28 23:33:57 +0800 |
commit | 4012bf960377f4281d2a47d22378e1b30f520190 (patch) | |
tree | a01acc60ddf80f4616150f75cc3b175e370062c9 /mbbsd/board.c | |
parent | 834a22995914e8987ddc99cd3bba20942606f335 (diff) | |
download | pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar.gz pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar.bz2 pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar.lz pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar.xz pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.tar.zst pttbbs-4012bf960377f4281d2a47d22378e1b30f520190.zip |
explicit fav entrance
description:
1. A user enters Class of the main menu.
Now fav is loaded, and fav_stack[0] is fav root.
2. Go some dir, press 'y'.
fav_stack[0] != NULL, so the user WAS in fav tree.
3. press 'a' or 'i' can break the program.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3108 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index f9331bc2..d75a3a78 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -675,8 +675,6 @@ 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 */ @@ -873,7 +871,7 @@ choose_board(int newflag) brdnum = -1; break; case 'y': - if (get_current_fav() != NULL || !IS_LISTING_FAV()){ + if (get_current_fav() != NULL) { if (cuser.userlevel) yank_flag ^= 1; /* FAV <=> BRD */ else @@ -1275,7 +1273,11 @@ 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; } |