summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 16:35:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-07-04 16:35:51 +0800
commita4743dd2f4f432ee8894f488bd0cbd9d77248c01 (patch)
tree9be538d3af681ce4d9e737fea4f63613aaac5788
parent5e7389f217ca6bfae3ee09987d01eac327fca4db (diff)
downloadpttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar.gz
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar.bz2
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar.lz
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar.xz
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.tar.zst
pttbbs-a4743dd2f4f432ee8894f488bd0cbd9d77248c01.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1020 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 6772500d..d880f706 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.64 2003/06/27 02:39:32 in2 Exp $ */
+/* $Id: user.c,v 1.65 2003/07/04 08:35:51 in2 Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1049,8 +1049,12 @@ static int HaveRejectStr(char *s, char **rej)
{
int i;
char *rejectstr[] =
- {"幹", "阿", "ㄚ", "不", "你媽", "某", "笨", "呆", "..", "xx",
- "你管", "管我", "猜", "天才", "超人", NULL};
+ {"幹", "阿", "不", "你媽", "某", "笨", "呆", "..", "xx",
+ "你管", "管我", "猜", "天才", "超人",
+ "ㄅ", "ㄆ", "ㄇ", "ㄈ", "ㄉ", "ㄊ", "ㄋ", "ㄌ", "ㄍ", "ㄎ", "ㄏ",
+ "ㄐ", "ㄑ", "ㄒ", "ㄓ", "ㄔ", "ㄕ", "ㄖ", "ㄗ", "ㄘ", "ㄙ", "ㄧ",
+ "ㄨ", "ㄩ", "ㄚ", "ㄛ", "ㄜ", "ㄝ", "ㄞ", "ㄟ", "ㄠ", "ㄡ", "ㄢ",
+ "ㄣ", "ㄤ", "ㄥ", "ㄦ", NULL};
if( rej != NULL )
for( i = 0 ; rej[i] != NULL ; ++i )
@@ -1068,7 +1072,7 @@ static char *isvalidname(char *rname)
char *rejectstr[] =
{"肥", "胖", "豬頭", "小白", "小明", "路人", "老王", "老李", "寶貝",
"先生", "師哥", "老頭", "小姊", "小姐", "美女", "小妹", "大頭",
- "公主", NULL};
+ "公主", "同學", "寶寶", "公子", "大頭", NULL};
if( removespace(rname) && rname[0] < 0 &&
strlen(rname) >= 4 &&
!HaveRejectStr(rname, rejectstr) &&
@@ -1109,6 +1113,7 @@ static char *isvalidaddr(char *addr)
strcmp(&addr[strlen(addr) - 2], "巷") == 0 ||
strcmp(&addr[strlen(addr) - 2], "弄") == 0 ||
strcmp(&addr[strlen(addr) - 2], "區") == 0 ||
+ strcmp(&addr[strlen(addr) - 2], "市") == 0 ||
strcmp(&addr[strlen(addr) - 2], "街") == 0 )
return "這個地址並不合法";
return NULL;