diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-23 00:04:12 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-23 00:04:12 +0800 |
commit | 945cf121ce0dfea9c37183eff0b05760bdef3a1d (patch) | |
tree | de9d25b806121418f14f7b07aeb2136497da6b36 /mbbsd/mbbsd.c | |
parent | 68a75abe1e5568bbac2dbcca6ccad8aca6a1708c (diff) | |
download | pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar.gz pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar.bz2 pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar.lz pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar.xz pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.tar.zst pttbbs-945cf121ce0dfea9c37183eff0b05760bdef3a1d.zip |
give a warning if too many subscribed favorites is added at the same time
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2711 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r-- | mbbsd/mbbsd.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 92377e37..2d71bbd6 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1024,9 +1024,15 @@ user_login(void) if(cuser.uflag2 & FAVNEW_FLAG) { fav_load(); - /* subscribe new fav (deprecated) */ - if (get_fav_root() != NULL) - updatenewfav(1); + if (get_fav_root() != NULL) { + int num; + num = updatenewfav(1); + if (num > NEW_FAV_THRESHOLD && + getans("將新加入我的最愛的看板數達到 %d 個,確定要加入?[N/y]", num) != 'y') { + fav_free(); + fav_load(); + } + } } for (i = 0; i < NUMVIEWFILE; i++) |