diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-06 23:10:27 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-06 23:10:27 +0800 |
commit | 44130518ebaf2717f7e842ad4799801ca5150566 (patch) | |
tree | 9bd33b19cfd9904aef79530991e6c3f39c8a7319 /mbbsd/board.c | |
parent | b35ae20a364942ab97ff2d53226f613518fc07eb (diff) | |
download | pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar.gz pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar.bz2 pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar.lz pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar.xz pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.tar.zst pttbbs-44130518ebaf2717f7e842ad4799801ca5150566.zip |
- more: change 's' to 'select-board' instead of 'search'.
- board:enable 'd' to remove myfav entries.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3971 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 717f8e8a..cafdf4a0 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1502,7 +1502,7 @@ choose_board(int newflag) break; case 'S': if(IS_LISTING_FAV()){ - move(b_lines - 2, 0); + move(b_lines - 2, 0); clrtobot(); outs("重新排序看板 " ANSI_COLOR(1;33) "(注意, 這個動作會覆寫原來設定)" ANSI_RESET " \n"); tmp = getans("排序方式 (1)按照板名排序 (2)按照類別排序 ==> [0]取消 "); @@ -1534,7 +1534,7 @@ choose_board(int newflag) break; case 's': if ((tmp = search_board()) == -1) { - show_brdlist(head, 1, newflag); + Select(); break; } head = -1; @@ -1691,6 +1691,7 @@ choose_board(int newflag) } break; + case 'd': // why don't we enable 'd'? case 'z': case 'm': if (HasFavEditPerm()) { @@ -1704,12 +1705,14 @@ choose_board(int newflag) ptr->myattr &= ~NBRD_FAV; } } - else { + else + { if (getboard(ptr->bid) != NULL) { fav_remove_item(ptr->bid, FAVT_BOARD); ptr->myattr &= ~NBRD_FAV; } - else { + else if (ch != 'd') // 'd' only deletes something. + { if (fav_add_board(ptr->bid) == NULL) vmsg("你的最愛太多了啦 真花心"); else |