summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-26 09:33:01 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-06-26 09:33:01 +0800
commit27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5 (patch)
treec04bf5c7e18a8dc903939c1187a4284ed2e5e2e4
parent13eae71e1e3b621a74ac8c62e57490760b8a9807 (diff)
downloadpttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar.gz
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar.bz2
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar.lz
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar.xz
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.tar.zst
pttbbs-27ad27c7b1cee0ad4e7a8121efeb8b946ec021d5.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@971 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index 9031107e..5b164c19 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1,4 +1,4 @@
-/* $Id: user.c,v 1.62 2003/06/21 05:50:47 in2 Exp $ */
+/* $Id: user.c,v 1.63 2003/06/26 01:33:01 in2 Exp $ */
#include "bbs.h"
static char *sex[8] = {
@@ -1050,7 +1050,7 @@ static int HaveRejectStr(char *s, char **rej)
int i;
char *rejectstr[] =
{"幹", "阿", "ㄚ", "不", "你媽", "某", "笨", "呆", "..", "xx",
- "你管", "管我", NULL};
+ "你管", "管我", "猜", NULL};
if( rej != NULL )
for( i = 0 ; rej[i] != NULL ; ++i )
@@ -1067,7 +1067,7 @@ static char *isvalidname(char *rname)
{
char *rejectstr[] =
{"肥", "胖", "豬頭", "小白", "小明", "路人", "老王", "老李", "寶貝",
- "先生", "師哥", "老頭", "小姊", "小姐", "美女", "小妹", NULL};
+ "先生", "師哥", "老頭", "小姊", "小姐", "美女", "小妹", "大頭", NULL};
if( removespace(rname) && rname[0] < 0 &&
strlen(rname) >= 4 &&
!HaveRejectStr(rname, rejectstr) &&
@@ -1106,6 +1106,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 ||
strcmp(&addr[strlen(addr) - 2], "街") == 0 )
return "這個地址並不合法";