summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/bbs.c3
-rw-r--r--pttbbs/mbbsd/mbbsd.c3
-rw-r--r--pttbbs/mbbsd/register.c34
3 files changed, 21 insertions, 19 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index e97ba92e..7e611c06 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -222,8 +222,9 @@ anticrosspost(void)
ANSI_COLOR(37;45) "cross post 文章 "
ANSI_COLOR(37) " %s" ANSI_RESET "\n",
cuser.userid, Cdatelite(&now));
+
post_violatelaw(cuser.userid, BBSMNAME "系統警察",
- "Cross-post", "罰單處份");
+ "Cross-post", "罰單處份");
pwcuViolateLaw();
mail_id(cuser.userid, "Cross-Post罰單",
"etc/crosspost.txt", BBSMNAME "警察部隊");
diff --git a/pttbbs/mbbsd/mbbsd.c b/pttbbs/mbbsd/mbbsd.c
index 0ab19279..443261ee 100644
--- a/pttbbs/mbbsd/mbbsd.c
+++ b/pttbbs/mbbsd/mbbsd.c
@@ -1322,14 +1322,13 @@ user_login(void)
restore_backup();
check_mailbox_quota();
- if (HasUserPerm(PERM_VIOLATELAW) && !HasUserPerm(PERM_BASIC)) {
+ if (!HasUserPerm(PERM_BASIC)) {
vs_hdr2(" 停權通知 ", " 部份功\能已被暫停使用");
outs(ANSI_COLOR(1;31) "\n\n\t抱歉,你的帳號已被停權。\n"
"\t詳情請至 ViolateLaw 看板搜尋你的 ID。\n" ANSI_RESET);
pressanykey();
}
-
// XXX 這個 check 花不少時間,有點間隔比較好
if (HasUserPerm(PERM_BM) &&
(cuser.numlogindays % 10 == 0) && // when using numlogindays, check with is_first_login_of_today
diff --git a/pttbbs/mbbsd/register.c b/pttbbs/mbbsd/register.c
index 54153fb3..671521d2 100644
--- a/pttbbs/mbbsd/register.c
+++ b/pttbbs/mbbsd/register.c
@@ -956,24 +956,26 @@ check_register(void)
unlink(fn);
}
- /* 回覆過身份認證信函,或曾經 E-mail post 過 */
- clear();
- move(9, 0);
+ // 只有以下情形需要自動叫出註冊選單:
+ // 1. 首次註冊 (numlogindays < 2)
+ // 2. 正在 e-mail 認證
+ // 3. 申請板主然後被取消(email)認證
+ // 其它情形就假設 user 不想註冊了
- // 無法使用註冊碼 = 被退註的,提示一下?
- // (u_register 裡面會 vmsg)
- if (HasUserPerm(PERM_NOREGCODE))
- {
+ setuserfile(fn, FN_REJECT_NOTIFY);
+ if ((cuser.numlogindays < 2) ||
+ HasUserPerm(PERM_NOREGCODE) ||
+ strstr(cuser.email, "@")) {
+ clear();
+ vs_hdr2(" 未完成註冊認證 ", " 您的帳號尚未完成認證");
+ move(9, 0);
+ outs(" 您目前尚未通過註冊認證程序,請細詳填寫"
+ ANSI_COLOR(32) "註冊申請單" ANSI_RESET ",\n"
+ " 通告站長以獲得進階使用權力。\n\n");
+ outs(" 如果您之前曾使用 email 等認證方式通過註冊認證但又看到此訊息,\n"
+ " 代表您的認證由於資料不完整已被取消 (常見於申請開新看板的板主)。\n");
+ u_register();
}
-
- outs(" 您目前尚未通過註冊認證程序,請細詳填寫"
- ANSI_COLOR(32) "註冊申請單" ANSI_RESET ",\n"
- " 通告站長以獲得進階使用權力。\n\n");
-
- outs(" 如果您之前曾使用 email 等認證方式通過註冊認證但又看到此訊息,\n"
- " 代表您的認證由於資料不完整已被取消 (常見於申請開新看板的板主)。\n");
-
- u_register();
}
static int