From d5c8407447f198741a978e263366147e5cd5a35f Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 12 Jun 2005 10:53:11 +0000 Subject: sysops don't want their last login updated git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2834 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'mbbsd/mbbsd.c') 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 -- cgit v1.2.3