diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-08 13:53:12 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-03-08 13:53:12 +0800 |
commit | c86171b69ccc0d127f97cb3ad68a00245e451a14 (patch) | |
tree | bd7f0ad3a49a20b8979bd2a79ed76162e9247a50 | |
parent | 1812d5521f71bf6726cd959308cb4628c5a1951c (diff) | |
download | pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar.gz pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar.bz2 pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar.lz pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar.xz pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.tar.zst pttbbs-c86171b69ccc0d127f97cb3ad68a00245e451a14.zip |
- mail: never use 'x' as foward address. help manual registered users.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3976 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/mail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 530d23aa..485bd394 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1955,7 +1955,8 @@ doforward(const char *direct, const fileheader_t * fh, int mode) } trim(address); - if (address[0]) { + // if user has address and not the default 'x' (no-email)... + if (address[0] && strcmp(address, "x") != 0) { snprintf(genbuf, sizeof(genbuf), "½T©wÂà±Hµ¹ [%s] ¶Ü(Y/N/Q)¡H[Y] ", address); getdata(b_lines, 0, genbuf, fname, 3, LCECHO); |