From 524f96649436d3aa687c237a61c82cee5cf2e145 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 8 Jun 2005 11:12:43 +0000 Subject: myfav update: (1) Auto subscription to new forum is tooooo annoying. (2) We need "inverse" selection of myfav git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2802 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 15 +++++++++++++++ mbbsd/mbbsd.c | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/board.c b/mbbsd/board.c index 55b1f450..83470943 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -779,6 +779,21 @@ choose_board(int newflag) if (num-- <= 0) num = brdnum - 1; break; + case '*': + { + int i = 0; + for (i = 0; i < brdnum; i++) + { + ptr = &nbrd[i]; + if (IS_LISTING_FAV()){ + if(get_fav_type(&nbrd[0]) != 0) + fav_tag(ptr->bid, get_fav_type(ptr), 2); + } + ptr->myattr ^= NBRD_TAG; + } + head = 9999; + } + break; case 't': ptr = &nbrd[num]; if (IS_LISTING_FAV()){ diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 4b915a36..d9f48758 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1033,7 +1033,7 @@ user_login(void) int num; num = updatenewfav(1); if (num > NEW_FAV_THRESHOLD && - getans("將新加入我的最愛的看板數達到 %d 個,確定要加入?[N/y]", num) != 'y') { + getans("找到 %d 個新看板,要加入我的最愛嗎?[N/y]", num) != 'y') { fav_free(); fav_load(); } -- cgit v1.2.3