summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-12 18:54:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-12 18:54:14 +0800
commit25baccf79ba66857c91c5d0e8eb5193c9d212810 (patch)
treefec518d093f1ab55071edc2196200ea04543e33e
parentd5c8407447f198741a978e263366147e5cd5a35f (diff)
downloadpttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar.gz
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar.bz2
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar.lz
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar.xz
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.tar.zst
pttbbs-25baccf79ba66857c91c5d0e8eb5193c9d212810.zip
fix last patch: logical dependency error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2835 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 30f41ad7..00d470f1 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1020,11 +1020,6 @@ user_login(void)
STATINC(STAT_TODAYLOGIN_MAX);
if (!PERM_HIDE(currutmp)) {
-
- if(ptime.tm_yday!=lasttime.tm_yday)
- STATINC(STAT_TODAYLOGIN_MIN);
- cuser.lastlogin = login_start_time;
-
/* If you wanna do incremental upgrade
* (like, added a function/flag that wants user to confirm againe)
* put it here.
@@ -1040,6 +1035,13 @@ user_login(void)
cuser.uflag |= DBCSAWARE_FLAG;
}
#endif
+ /* login time update */
+
+ if(ptime.tm_yday!=lasttime.tm_yday)
+ STATINC(STAT_TODAYLOGIN_MIN);
+
+
+ cuser.lastlogin = login_start_time;
}