diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-21 00:52:56 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-21 00:52:56 +0800 |
commit | ec66448db2cb293cd66d3fa3ec748410affd60fb (patch) | |
tree | 2a6c74e658c725fe4ece5fa5a6ebde80fcb7e2b4 /mbbsd | |
parent | 6799cdf9352ae8995d3fa6d10a1cdcf09f5d648b (diff) | |
download | pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar.gz pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar.bz2 pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar.lz pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar.xz pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.tar.zst pttbbs-ec66448db2cb293cd66d3fa3ec748410affd60fb.zip |
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@671 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/user.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index c236279a..2319220e 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,4 +1,4 @@ -/* $Id: user.c,v 1.45 2003/01/19 16:06:06 kcwu Exp $ */ +/* $Id: user.c,v 1.46 2003/02/20 16:52:56 in2 Exp $ */ #include "bbs.h" static char *sex[8] = { @@ -941,9 +941,12 @@ static char *isvaildname(char *rname) { if( removespace(rname) && rname[0] < 0 && strlen(rname) >= 4 && - !strstr(rname, "阿") && !strstr(rname, "小") && + !strstr(rname, "阿") && !strstr(rname, "某") && !strstr(rname, "ㄚ") && strstr(rname, "..") == NULL && !strstr(rname, "美女") && !strstr(rname, "帥哥") && + !strstr(rname, "先生") && !strstr(rname, "小姐") && + !strstr(rname, "老頭") && !strstr(rname, "豬頭") && + strncmp(rname, "小", 2) != 0 && !(strlen(rname) == 4 && strncmp(&rname[2], "兒", 2) == 0) && !(strlen(rname) >= 4 && strncmp(&rname[0], &rname[2], 2) == 0)) return NULL; |