diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-25 20:41:57 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-25 20:41:57 +0800 |
commit | aceea973def600f8611df77245c006e34655d258 (patch) | |
tree | 7bf5bc21568bd972ddd0cdf38be969bcb60e63f4 | |
parent | 3944fd34ec9b7b7bf252c7169a7ebc9b84e95fbf (diff) | |
download | pttbbs-aceea973def600f8611df77245c006e34655d258.tar pttbbs-aceea973def600f8611df77245c006e34655d258.tar.gz pttbbs-aceea973def600f8611df77245c006e34655d258.tar.bz2 pttbbs-aceea973def600f8611df77245c006e34655d258.tar.lz pttbbs-aceea973def600f8611df77245c006e34655d258.tar.xz pttbbs-aceea973def600f8611df77245c006e34655d258.tar.zst pttbbs-aceea973def600f8611df77245c006e34655d258.zip |
defer fav_load() to choose_board() if the user didn't subscribe new boards.
don't know it will save memory or not.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2545 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 7b78e82e..40794b5a 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1003,10 +1003,12 @@ user_login() currutmp->goodsale = cuser.goodsale; currutmp->badsale = cuser.badsale; - fav_load(); - /* subscribe new fav (deprecated) */ - if (get_fav_root() != NULL) - updatenewfav(1); + if(cuser.uflag2 & FAVNEW_FLAG) { + fav_load(); + /* subscribe new fav (deprecated) */ + if (get_fav_root() != NULL) + updatenewfav(1); + } for (i = 0; i < NUMVIEWFILE; i++) if ((cuser.loginview >> i) & 1) |