diff options
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/register.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 7e76e897..9e6c60b3 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -64,8 +64,10 @@ bad_user_id(char *userid) if (strcasecmp(userid, str_new) == 0) return 1; - if (strcasestr(userid, "fuck") != NULL || - strcasestr(userid, "shit") != NULL ) + /* in2: 原本是用strcasestr, + 不過有些人中間剛剛好出現這個字應該還算合理吧? */ + if( strncasecmp(userid, "fuck", 4) == 0 || + strncasecmp(userid, "shit", 4) == 0 ) return 1; /* |