diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-13 20:30:03 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-13 20:30:03 +0800 |
commit | 168621425874d124e69420b7155802e7c76b8d1b (patch) | |
tree | bf134a7a0976c5bf0a3018b97999e5758c68ee3f /mbbsd | |
parent | e1424931b48805fad917e008b0bf18cbc8c2c89b (diff) | |
download | pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar.gz pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar.bz2 pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar.lz pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar.xz pttbbs-168621425874d124e69420b7155802e7c76b8d1b.tar.zst pttbbs-168621425874d124e69420b7155802e7c76b8d1b.zip |
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
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 8 |
1 files changed, 4 insertions, 4 deletions
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(); |