diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 01:46:00 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-24 01:46:00 +0800 |
commit | 8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c (patch) | |
tree | 01154b2f0d5a877e38e7edfcfbb2adf43a039f3f | |
parent | fac5bbd80755f185a26df033a9783aae182b600e (diff) | |
download | pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar.gz pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar.bz2 pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar.lz pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar.xz pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.tar.zst pttbbs-8e3a8b2bcaadc819bf4bfa5fd7d36d8701d2076c.zip |
for foreigner
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1831 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mbbsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index 41af43fb..2b1db5a8 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -873,7 +873,7 @@ static void init_guest_info(void) currutmp->pager = 2; } -#ifdef FOREIGN_REG +#ifdef FOREIGN_REG_DAY inline static void foreign_warning(void){ if ((cuser.uflag2 & FOREIGN) && !(cuser.uflag2 & LIVERIGHT)){ if (login_start_time - cuser.firstlogin > (FOREIGN_REG_DAY - 5) * 24 * 3600){ @@ -981,7 +981,7 @@ user_login() if (!PERM_HIDE(currutmp)) cuser.lastlogin = login_start_time; -#ifdef FOREIGN_REG +#ifdef FOREIGN_REG_DAY foreign_warning(); #endif passwd_update(usernum, &cuser); |