From 168621425874d124e69420b7155802e7c76b8d1b Mon Sep 17 00:00:00 2001 From: kcwu Date: Sun, 13 Mar 2005 12:30:03 +0000 Subject: fix bug: if user disconnected during login, goodpost will be reseted to 0. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2615 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index db98041d..ba73ad3a 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -774,6 +774,10 @@ setup_utmp(int mode) uinfo.chess_elo_rating = cuser.chess_elo_rating; uinfo.invisible = cuser.invisible % 2; uinfo.pager = cuser.pager % 5; + uinfo.goodpost = cuser.goodpost; + uinfo.badpost = cuser.badpost; + uinfo.goodsale = cuser.goodsale; + uinfo.badsale = cuser.badsale; if(cuser.withme & (cuser.withme<<1) & (WITHME_ALLFLAG<<1)) cuser.withme=0; uinfo.withme = cuser.withme; @@ -995,10 +999,6 @@ user_login(void) foreign_warning(); #endif passwd_update(usernum, &cuser); - currutmp->goodpost = cuser.goodpost; - currutmp->badpost = cuser.badpost; - currutmp->goodsale = cuser.goodsale; - currutmp->badsale = cuser.badsale; if(cuser.uflag2 & FAVNEW_FLAG) { fav_load(); -- cgit v1.2.3