summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-20 22:20:34 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-20 22:20:34 +0800
commit617c1538b56bd191d7e5f308ad4a4b406baa1a12 (patch)
treef1a24d5f51664917299d4736b40eadf3d92a65e6
parent048f93a5774383f82c9723de025c220bb12825cf (diff)
downloadpttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar.gz
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar.bz2
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar.lz
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar.xz
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.tar.zst
pttbbs-617c1538b56bd191d7e5f308ad4a4b406baa1a12.zip
remove restriction for foreigner
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 00c41c27..42f28592 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1133,6 +1133,7 @@ static char *isvalidcareer(char *career)
static char *isvalidaddr(char *addr)
{
+#ifndef FOREIGN_REG
char *rejectstr[] =
{"地球", "銀河", "火星", NULL};
@@ -1151,6 +1152,7 @@ static char *isvalidaddr(char *addr)
strcmp(&addr[strlen(addr) - 2], "市") == 0 ||
strcmp(&addr[strlen(addr) - 2], "街") == 0 )
return "這個地址並不合法";
+#endif
return NULL;
}