diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-16 07:54:07 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-05-16 07:54:07 +0800 |
commit | 95696e492ef929abbde0b0f05f4c96071cddc55a (patch) | |
tree | ab5628370ca4a6f336577d00cd5ca75e87478f1c | |
parent | fd455c47fd53062337df4dc2821ff97db18ced37 (diff) | |
download | pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar.gz pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar.bz2 pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar.lz pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar.xz pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.tar.zst pttbbs-95696e492ef929abbde0b0f05f4c96071cddc55a.zip |
fix foreign
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@852 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 1aaf9900..b9999eb4 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.77 2003/05/12 12:47:18 victor Exp $ */ +/* $Id: mbbsd.c,v 1.78 2003/05/15 23:54:07 victor Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -885,7 +885,7 @@ user_login() cuser.lastlogin = login_start_time; #ifdef FOREIGN_REG - if (cuser.uflag2 & (FOREIGN | LIVERIGHT)){ + if ((cuser.uflag2 & FOREIGN) && !(cuser.uflag2 & LIVERIGHT)){ if (login_start_time - cuser.firstlogin > (FOREIGN_REG_DAY - 5) * 24 * 3600){ mail_muser(cuser, "[出入境管理局]", "etc/foreign_expired_warn"); } |