diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 21:58:19 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-16 21:58:19 +0800 |
commit | eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4 (patch) | |
tree | f6d14b01c9315840ac6519aebcc937f859fffff0 | |
parent | b21c27c008abe611d03e5ab8042080b632846e5c (diff) | |
download | pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar.gz pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar.bz2 pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar.lz pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar.xz pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.tar.zst pttbbs-eeb4d09eea13be3b1c24463cb0d7eaf03cb473e4.zip |
NO_GUEST_ACCOUNT_REG. thanks rafan.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3048 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/register.c | 5 | ||||
-rw-r--r-- | sample/pttbbs.conf | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index 9ccc68a3..f75088c4 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -61,6 +61,11 @@ bad_user_id(const char *userid) if (strcasecmp(userid, str_new) == 0) return 1; +#ifdef NO_GUEST_ACCOUNT_REG + if (strcasecmp(userid, STR_GUEST) == 0) + return 1; +#endif + /* in2: 原本是用strcasestr, 不過有些人中間剛剛好出現這個字應該還算合理吧? */ if( strncasecmp(userid, "fuck", 4) == 0 || diff --git a/sample/pttbbs.conf b/sample/pttbbs.conf index 37101764..bfd002ff 100644 --- a/sample/pttbbs.conf +++ b/sample/pttbbs.conf @@ -220,6 +220,9 @@ /* 在 cacheserver 上面擋掉狂上下站的使用者 */ //#define NOFLOODING +/* 若定義, 則不允許註冊 guest */ +//#define NO_GUEST_ACCOUNT_REG + /* 前進站畫面 */ #define INSCREEN \ "前進站畫面 (請至 pttbbs.conf 修改您的前進站畫面)" |