summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-23 00:04:12 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-23 00:04:12 +0800
commit945cf121ce0dfea9c37183eff0b05760bdef3a1d (patch)
treede9d25b806121418f14f7b07aeb2136497da6b36 /mbbsd/mbbsd.c
parent68a75abe1e5568bbac2dbcca6ccad8aca6a1708c (diff)
downloadpttbbs-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.c12
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++)