diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-14 13:13:54 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-14 13:13:54 +0800 |
commit | 700ad96bde7769ed9c7fd5f4fc248e93fba8af2f (patch) | |
tree | 00e55d0d09418c6b33cef8f4f5244820766ba1fd | |
parent | 54ee21da7138480a03111207927525f70478e7e0 (diff) | |
download | pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar.gz pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar.bz2 pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar.lz pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar.xz pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.tar.zst pttbbs-700ad96bde7769ed9c7fd5f4fc248e93fba8af2f.zip |
warn if a foreigner
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1094 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 53ea8d19..c55b1335 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.72 2003/07/20 01:20:11 bbs Exp $ */ +/* $Id$ */ #include "bbs.h" static char *sex[8] = { @@ -1269,16 +1269,22 @@ u_register(void) #ifdef FOREIGN_REG } else{ + int i; while( 1 ){ getfield(3, "0123456789", "護照號碼", ident, 11); + move(5, 2); + prints("注意:護照號碼有誤者將無法取得進一步的權限!"); getdata(6, 0, "是否確定(Y/N)", ans, sizeof(ans), LCECHO); if (ans[0] == 'y' || ans[0] == 'Y') break; vmsg("請重新輸入(若有問題麻煩至SYSOP板)"); } + for(i = 0; ans[i] != 0; i++) + if ('a' <= ident[0] && ident[0] <= 'z') + ident[0] -= 32; if( ispersonalid(ident) ){ - vmsg("請以本國籍身份註冊"); - continue; + fore[0] = 0; + vmsg("您的身份已更改為本國籍"); } } #endif |