diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-19 14:55:12 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-19 14:55:12 +0800 |
commit | 3eca44299c5f563a225c47944e1fb53c4ad1a8d6 (patch) | |
tree | 28ddd525a9058a58f9192db52a75c11bad43a304 /mbbsd/user.c | |
parent | 4c19b81b4c652d5a6c5b47b9c081f476c0a52c91 (diff) | |
download | pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar.gz pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar.bz2 pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar.lz pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar.xz pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.tar.zst pttbbs-3eca44299c5f563a225c47944e1fb53c4ad1a8d6.zip |
define FOREIGN_REG to allow foreigner's registration
define FOREIGN_REG_DAY to limit their deadline to get the right of stay
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2522 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 8802dfcb..6b0cd115 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -71,8 +71,10 @@ user_display(userec_t * u, int real) " \033[m \033[30;41m┴┬┴┬┴┬\033[m\n"); prints(" 代號暱稱: %s(%s)\n" " 真實姓名: %s" -#ifdef FOREIGN_REG +#ifdef FOREIGN_REG_DAY > 0 " %s%s" +#elif defined(FOREIGN_REG) + " %s" #endif "\n" " 居住住址: %s\n" @@ -80,11 +82,13 @@ user_display(userec_t * u, int real) " 性 別: %s\n" " 銀行帳戶: %d 銀兩\n", u->userid, u->username, u->realname, -#ifdef FOREIGN_REG +#ifdef FOREIGN_REG_DAY > 0 u->uflag2 & FOREIGN ? "(外籍: " : "", u->uflag2 & FOREIGN ? (u->uflag2 & LIVERIGHT) ? "永久居留)" : "未取得居留權)" : "", +#elif defined(FOREIGN_REG) + u->uflag2 & FOREIGN ? "(外籍)" : "", #endif u->address, u->email, sex[u->sex % 8], u->money); @@ -1429,7 +1433,7 @@ u_register(void) exit(0); } mail_muser(cuser, "[註冊成功\囉]", "etc/registeredmail"); -#ifdef FOREIGN_REG +#ifdef FOREIGN_REG_DAY > 0 if(cuser.uflag2 & FOREIGN) mail_muser(cuser, "[出入境管理局]", "etc/foreign_welcome"); #endif |