summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 01:42:27 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 01:42:27 +0800
commit0c10e6fe28cb276ab030683eb4685c36e0facba7 (patch)
tree350e04491e1369c7a6836784b25cad2070f06438 /mbbsd/user.c
parent92e8c61fac2fee9a0e6723c76ae99e5245fd3597 (diff)
downloadpttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar.gz
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar.bz2
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar.lz
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar.xz
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.tar.zst
pttbbs-0c10e6fe28cb276ab030683eb4685c36e0facba7.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index fc60c08d..8aaf6df0 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.35 2002/08/06 07:12:52 in2 Exp $ */
+/* $Id: user.c,v 1.36 2002/08/27 17:42:27 in2 Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1075,7 +1075,12 @@ u_register(void)
vmsg("抱歉我們不接受郵政信箱");
continue;
}
- if ((strstr(addr, "市") == NULL && strstr(addr, "縣") == NULL) ||
+ if ((strstr(addr, "市") == NULL && strstr(addr, "縣") == NULL &&
+ strstr(addr, "室") == NULL) ||
+ strstr(addr, "地球") != NULL ||
+ strstr(addr, "銀河") != NULL ||
+ strstr(addr, "某") != NULL ||
+ strcmp(&addr[strlen(addr) - 2], "段") == 0 ||
strcmp(&addr[strlen(addr) - 2], "路") == 0 ||
strcmp(&addr[strlen(addr) - 2], "巷") == 0 ||
strcmp(&addr[strlen(addr) - 2], "街") == 0 ) {
@@ -1086,9 +1091,13 @@ u_register(void)
}
while (1) {
getfield(11, "不加-(), 包括長途區號", "連絡電話", phone, 11);
+ if (strstr(phone, "(") || strstr(phone, ")") || strstr(phone, "-")){
+ vmsg("電話請不加 ( ) - 符號");
+ continue;
+ }
if (!removespace(phone) || phone[0] != '0' ||
strlen(phone) < 9 || phone[1] == '0') {
- vmsg("這個電話號碼並不合法");
+ vmsg("這個電話號碼並不合法(請含區碼)");
continue;
}
break;