summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-21 00:52:56 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-02-21 00:52:56 +0800
commitec66448db2cb293cd66d3fa3ec748410affd60fb (patch)
tree2a6c74e658c725fe4ece5fa5a6ebde80fcb7e2b4 /mbbsd
parent6799cdf9352ae8995d3fa6d10a1cdcf09f5d648b (diff)
downloadpttbbs-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.c7
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;