diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-12 18:53:11 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-12 18:53:11 +0800 |
commit | d5c8407447f198741a978e263366147e5cd5a35f (patch) | |
tree | 7a49e98afe897c3296a1947636c8d181f9862ea2 /mbbsd | |
parent | 69aa60480b75e8f5accbc2b9717af81aadd0416f (diff) | |
download | pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar.gz pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar.bz2 pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar.lz pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar.xz pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.tar.zst pttbbs-d5c8407447f198741a978e263366147e5cd5a35f.zip |
sysops don't want their last login updated
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2834 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mbbsd.c | 15 |
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 |