summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-25 19:06:15 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-25 19:06:15 +0800
commit2eba4491bd30b619f7431a935b7ce4e2a1860f0d (patch)
treef6281ddde1446eaa5a2b3760843ba46707a5970c /mbbsd/user.c
parentbfe4e3f31748e2f8f7345cf7fbff7105db5cb750 (diff)
downloadpttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar.gz
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar.bz2
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar.lz
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar.xz
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.tar.zst
pttbbs-2eba4491bd30b619f7431a935b7ce4e2a1860f0d.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@438 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index d6dd4b20..9f985ab9 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.33 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: user.c,v 1.34 2002/07/25 11:06:15 in2 Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1043,7 +1043,8 @@ u_register(void)
while (1) {
getfield(5, "請用中文", "真實姓名", rname, 20);
if (removespace(rname) && rname[0] < 0 &&
- !strstr(rname, "阿") && !strstr(rname, "小"))
+ !strstr(rname, "阿") && !strstr(rname, "小") &&
+ !strstr(rname, "ㄚ"))
break;
vmsg("您的輸入不正確");
}
@@ -1074,7 +1075,10 @@ u_register(void)
vmsg("抱歉我們不接受郵政信箱");
continue;
}
- if (strstr(addr, "市") == NULL && strstr(addr, "縣") == NULL) {
+ if ((strstr(addr, "市") == NULL && strstr(addr, "縣") == NULL) ||
+ strcmp(&addr[strlen(addr) - 2], "路") == 0 ||
+ strcmp(&addr[strlen(addr) - 2], "巷") == 0 ||
+ strcmp(&addr[strlen(addr) - 2], "街") == 0 ) {
vmsg("這個地址並不合法");
continue;
}