summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/user.c')
-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;
}