From aceea973def600f8611df77245c006e34655d258 Mon Sep 17 00:00:00 2001 From: kcwu Date: Fri, 25 Feb 2005 12:41:57 +0000 Subject: 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 --- mbbsd/mbbsd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mbbsd/mbbsd.c') 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) -- cgit v1.2.3