diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-04 14:52:14 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-04 14:52:14 +0800 |
commit | 7204388338e4e7445afd399a2e1c4947f86fbce3 (patch) | |
tree | acb927d31a747670a3ad1af593d537046581cb45 /mbbsd/mail.c | |
parent | ff7b952f0b6628d4843bd0cf4ceb8e9efd7798aa (diff) | |
download | pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.gz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.bz2 pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.lz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.xz pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.tar.zst pttbbs-7204388338e4e7445afd399a2e1c4947f86fbce3.zip |
apply rafan's (rafan.bbs@ptt2.cc) big patch to s/username/nickname/g
turn off FOREIGN_REG by default in sample/pttbbs.conf
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2887 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 300f2e96..5e9be2fe 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1173,7 +1173,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct) append_record(fname, &xfile, sizeof(xfile)); setbtotal(getbnum(xboard)); if (!xfile.filemode) - outgo_post(&xfile, xboard, cuser.userid, cuser.username); + outgo_post(&xfile, xboard, cuser.userid, cuser.nickname); #ifdef USE_COOLDOWN if (bcache[getbnum(xboard) - 1].brdattr & BRD_COOLDOWN) add_cooldowntime(usernum, 5); @@ -1529,7 +1529,7 @@ bbs_sendmail(const char *fpath, const char *title, char *receiver) if (fpath) fprintf(fout, "Reply-To: %s%s\nFrom: %s <%s%s>\n", cuser.userid, str_mail_address, - cuser.username, + cuser.nickname, cuser.userid, str_mail_address); fprintf(fout,"To: %s\nSubject: %s\n" "Mime-Version: 1.0\r\n" @@ -1592,7 +1592,7 @@ bsmtp(const char *fpath, const char *title, const char *rcpt, int method) mqueue.mailtime = chrono; mqueue.method = method; strlcpy(mqueue.sender, cuser.userid, sizeof(mqueue.sender)); - strlcpy(mqueue.username, cuser.username, sizeof(mqueue.username)); + strlcpy(mqueue.username, cuser.nickname, sizeof(mqueue.username)); strlcpy(mqueue.rcpt, rcpt, sizeof(mqueue.rcpt)); if (append_record("out/.DIR", (fileheader_t *) & mqueue, sizeof(mqueue)) < 0) return 0; |