diff options
Diffstat (limited to 'mbbsd/register.c')
-rw-r--r-- | mbbsd/register.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index ca49400c..58694c3d 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -300,6 +300,16 @@ check_register() { char *ptr = NULL; + if (HAS_PERM(PERM_LOGINOK)) + return; + + /* + * 避免使用者被退回註冊單後,在知道退回的原因之前, + * 又送出一次註冊單。 + */ + if (currutmp->mailalert) + m_read(); + stand_title("請詳細填寫個人資料"); while (strlen(cuser.username) < 2) @@ -331,19 +341,18 @@ check_register() * cuser.userid, str_mail_address); } while(!strchr(cuser.email, '@')); * * } */ - if (!HAS_PERM(PERM_SYSOP) && !HAS_PERM(PERM_LOGINOK)) { + if (!HAS_PERM(PERM_SYSOP)) { /* 回覆過身份認證信函,或曾經 E-mail post 過 */ clear(); move(9, 3); prints("請詳填寫\033[32m註冊申請單\033[m," "通告站長以獲得進階使用權力。\n\n\n\n"); u_register(); - } + #ifdef NEWUSER_LIMIT - if (!(cuser.userlevel & PERM_LOGINOK) && !HAS_PERM(PERM_SYSOP)) { if (cuser.lastlogin - cuser.firstlogin < 3 * 86400) cuser.userlevel &= ~PERM_POST; more("etc/newuser", YEA); - } #endif + } } |