From eb3e6d48d444fbc54420a814ff78c24161b6f437 Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 8 Mar 2003 01:43:28 +0000 Subject: register git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/user.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index f290e449..e1ff5a3a 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.47 2003/02/22 09:12:42 in2 Exp $ */ +/* $Id: user.c,v 1.48 2003/03/08 01:43:28 in2 Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -942,12 +942,21 @@ static char *isvaildname(char *rname) { if( removespace(rname) && rname[0] < 0 && strlen(rname) >= 4 && - !strstr(rname, "阿") && !strstr(rname, "某") && - !strstr(rname, "ㄚ") && strstr(rname, "..") == NULL && + !strstr(rname, "幹") && !strstr(rname, "肥") && + !strstr(rname, "胖") && !strstr(rname, "笨") && + !strstr(rname, "阿") && !strstr(rname, "某") && + !strstr(rname, "ㄚ") && !strstr(rname, "..") && + !strstr(rname, "呆") && + !strstr(rname, "美女") && !strstr(rname, "帥哥") && !strstr(rname, "先生") && !strstr(rname, "小姐") && !strstr(rname, "老頭") && !strstr(rname, "豬頭") && - strncmp(rname, "小", 2) != 0 && + !strstr(rname, "寶貝") && !strstr(rname, "小白") && + !strstr(rname, "小明") && !strstr(rname, "小妹") && + !strstr(rname, "路人") && + + strncmp(rname, "小", 2) != 0 && //起頭是「小」 + strncmp(rname, "我是", 4) != 0 && //起頭是「我是」 !(strlen(rname) == 4 && strncmp(&rname[2], "兒", 2) == 0) && !(strlen(rname) >= 4 && strncmp(&rname[0], &rname[2], 2) == 0)) return NULL; -- cgit v1.2.3