From 700ad96bde7769ed9c7fd5f4fc248e93fba8af2f Mon Sep 17 00:00:00 2001 From: victor Date: Thu, 14 Aug 2003 05:13:54 +0000 Subject: warn if a foreigner git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1094 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mbbsd') 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 -- cgit v1.2.3