summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 36f66ab9..30f41ad7 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1019,7 +1019,12 @@ user_login(void)
if(ptime.tm_yday!=lasttime.tm_yday)
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.
@@ -1033,19 +1038,11 @@ user_login(void)
cuser.uflag &= ~DBCSAWARE_FLAG;
else
cuser.uflag |= DBCSAWARE_FLAG;
-
- cuser.lastlogin = login_start_time;
}
#endif
}
- if (!PERM_HIDE(currutmp)) {
- if(ptime.tm_yday!=lasttime.tm_yday)
- STATINC(STAT_TODAYLOGIN_MIN);
- cuser.lastlogin = login_start_time;
- }
-
#if FOREIGN_REG_DAY > 0
foreign_warning();
#endif