summaryrefslogtreecommitdiffstats
path: root/mbbsd/user.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-08 09:43:28 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-08 09:43:28 +0800
commit75f535931ea7ff9f1c998126e9528d5d0f5925fc (patch)
tree1f8e313526e5154cbc755aca3a0e507cff9d890e /mbbsd/user.c
parentb24729860fbbfd8656673670373317562e40ca40 (diff)
downloadpttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar.gz
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar.bz2
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar.lz
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar.xz
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.tar.zst
pttbbs-75f535931ea7ff9f1c998126e9528d5d0f5925fc.zip
register
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@689 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r--mbbsd/user.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c
index f290e449..e1ff5a3a 100644
--- a/mbbsd/user.c
+++ b/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;