summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 96dc8d59..f71785e8 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -951,6 +951,7 @@ setup_utmp(int mode)
#endif
getnewutmpent(&uinfo);
+ currmode = MODE_STARTED;
SHM->UTMPneedsort = 1;
// XXX 不用每 20 才檢查吧
if (!(cuser.numlogins % 20) && cuser.userlevel & PERM_BM)
@@ -1104,7 +1105,6 @@ user_login(void)
/* 初始化 uinfo、flag、mode */
setup_utmp(LOGIN);
- currmode = MODE_STARTED;
enter_uflag = cuser.uflag;
lasttime = *localtime4(&cuser.lastlogin);