summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/admin.c2
-rw-r--r--mbbsd/user.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index e04999b9..54930204 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1234,8 +1234,10 @@ scan_register_form(char *regfile, int automode, int neednum)
default:
outs("以下使用者資料已經更新:\n");
mail_muser(muser, "[註冊成功\囉]", "etc/registered");
+#ifdef FOREIGN_REG
if(muser.uflag2 & FOREIGN)
mail_muser(muser, "[出入境管理局]", "etc/foreign_welcome");
+#endif
muser.userlevel |= (PERM_LOGINOK | PERM_POST);
strlcpy(muser.realname, fdata[2], sizeof(muser.realname));
strlcpy(muser.address, fdata[4], sizeof(muser.address));
diff --git a/mbbsd/user.c b/mbbsd/user.c
index c44d4112..18ee988b 100644
--- a/mbbsd/user.c
+++ b/mbbsd/user.c
@@ -1426,8 +1426,10 @@ u_register(void)
exit(0);
}
mail_muser(cuser, "[註冊成功\囉]", "etc/registeredmail");
+#ifdef FOREIGN_REG
if(cuser.uflag2 & FOREIGN)
mail_muser(cuser, "[出入境管理局]", "etc/foreign_welcome");
+#endif
cuser.userlevel |= (PERM_LOGINOK | PERM_POST);
outs("\n註冊成功\, 重新上站後將取得完整權限\n"
"請按下任一鍵跳離後重新上站~ :)");