summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-16 10:00:02 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-16 10:00:02 +0800
commit4ae8fed9f9e72ba392b569266bc1a7bbc479dc07 (patch)
treec3952a4472b30c3dc7c26be47730fb579c82c05f /mbbsd/user.c
parent8d5407026c534916c014ca413012297aa8d386de (diff)
downloadpttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar.gz
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar.bz2
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar.lz
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar.xz
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.tar.zst
pttbbs-4ae8fed9f9e72ba392b569266bc1a7bbc479dc07.zip
fix register for foreigner
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1988 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 9e0958cf..d4016643 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1126,7 +1126,6 @@ static char *isvalidcareer(char *career)
static char *isvalidaddr(char *addr)
{
-#ifndef FOREIGN_REG
char *rejectstr[] =
{"地球", "銀河", "火星", NULL};
@@ -1145,7 +1144,6 @@ static char *isvalidaddr(char *addr)
strcmp(&addr[strlen(addr) - 2], "市") == 0 ||
strcmp(&addr[strlen(addr) - 2], "街") == 0 )
return "這個地址並不合法";
-#endif
return NULL;
}
@@ -1368,7 +1366,7 @@ u_register(void)
"目前住址", addr, 50);
if( (errcode = isvalidaddr(addr)) == NULL
#ifdef FOREIGN_REG
- && fore[0] == 0
+ || fore[0]
#endif
)
break;