diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-05 18:43:29 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-05 18:43:29 +0800 |
commit | c08de1e541bd49d66ecec4bfac3c83615ade54aa (patch) | |
tree | 3be5b5e099bd2b285dbb368782d5892c5e5b5d33 /mbbsd/user.c | |
parent | d74ae1e8f983520c4fa0322daeedc9bcc9304710 (diff) | |
download | pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar.gz pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar.bz2 pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar.lz pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar.xz pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.tar.zst pttbbs-c08de1e541bd49d66ecec4bfac3c83615ade54aa.zip |
- alert message for reg-email whitelist
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4273 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 420a49a4..9f146639 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1,5 +1,8 @@ /* $Id$ */ #include "bbs.h" + +#define FN_NOTIN_WHITELIST_NOTICE "etc/whitemail.notice" + static char * const sex[8] = { MSG_BIG_BOY, MSG_BIG_GIRL, MSG_LITTLE_BOY, MSG_LITTLE_GIRL, MSG_MAN, MSG_WOMAN, MSG_PLANT, MSG_MIME @@ -1347,7 +1350,18 @@ isvalidemail(const char *email) if (allow) break; } fclose(fp); - if (!allow) return 0; + if (!allow) + { + // show whitemail notice if it exists. + if (dashf(FN_NOTIN_WHITELIST_NOTICE)) + { + VREFSCR scr = vscr_save(); + more(FN_NOTIN_WHITELIST_NOTICE, NA); + pressanykey(); + vscr_restore(scr); + } + return 0; + } } // reject list |