summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}