diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-08 09:43:28 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-08 09:43:28 +0800 |
commit | eb3e6d48d444fbc54420a814ff78c24161b6f437 (patch) | |
tree | c13645c5a4a8b4dd32ec470d4e2bde6be644195b | |
parent | 997c24947ff3d27f1d06c6449cdc77c425976ed6 (diff) | |
download | pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar.gz pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar.bz2 pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar.lz pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar.xz pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.tar.zst pttbbs-eb3e6d48d444fbc54420a814ff78c24161b6f437.zip |
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 17 |
1 files 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; |