diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-22 23:35:41 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-22 23:35:41 +0800 |
commit | 2525842acf439138f15dfa1843de35c10f77f9ac (patch) | |
tree | a556176d237a10ec37ab4dfc4197ed38d58573ed /mbbsd | |
parent | 40ad7b021e773dc0d2baad40ead36abf885dfad9 (diff) | |
download | pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar.gz pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar.bz2 pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar.lz pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar.xz pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.tar.zst pttbbs-2525842acf439138f15dfa1843de35c10f77f9ac.zip |
- add customizable registration rejecting notes
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4233 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/register.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mbbsd/register.c b/mbbsd/register.c index a0312d19..30b69ad3 100644 --- a/mbbsd/register.c +++ b/mbbsd/register.c @@ -12,6 +12,8 @@ #define FN_REGFORM_LOG "regform.log" // regform history in user home #define FN_REQLIST "reg.wait" // request list file, in global directory (replacing fn_register) +#define FN_REJECT_NOTES "etc/reg_reject.notes" + // #define DBG_DISABLE_CHECK // disable all input checks // #define DBG_DRYRUN // Dry-run test (mainly for RegForm2) @@ -747,9 +749,9 @@ check_register(void) setuserfile(fn, FN_REJECT_NOTIFY); if (dashf(fn)) { - more(fn, NA); + more(fn, YEA); move(b_lines-3, 0); - outs("上次註冊單審查失敗。 (本記錄已備份於您的信箱中)\n" + outs("\n上次註冊單審查失敗。 (本記錄已備份於您的信箱中)\n" "請重新申請並照上面指示正確填寫註冊單。"); while(vans("請輸入 y 繼續: ") != 'y'); unlink(fn); @@ -1454,9 +1456,13 @@ regform_reject(const char *userid, const char *reason, const RegformEntry *pre) // multiple abbrev loop regform_print_reasons(reason, fp); - + fprintf(fp, "\n"); fclose(fp); + // if current site has extra notes + if (dashf(FN_REJECT_NOTES)) + AppendTail(FN_REJECT_NOTES, buf, 0); + // According to suggestions by PTT BBS account sysops, // it is better to use anonymous here. // |