summaryrefslogtreecommitdiffstats
path: root/mbbsd/edit.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-29 17:11:21 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-03-29 17:11:21 +0800
commitaa420a10ffe8e81567c16b780acb32962851053e (patch)
tree5bf7db3381e49ab85f6886bd3dfeb853bfc0bccb /mbbsd/edit.c
parentdae5bcd0ce2aa49b654f76fcc6038667d40511bc (diff)
downloadpttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.gz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.bz2
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.lz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.xz
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.tar.zst
pttbbs-aa420a10ffe8e81567c16b780acb32962851053e.zip
- (experimental) mask ip(fromhost): USE_MASKED_FROMHOST
- board: make 'w' (save_brc) more user friendly. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4039 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/edit.c')
-rw-r--r--mbbsd/edit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index c6b3a544..9b4f9d2a 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1577,7 +1577,7 @@ addsignature(FILE * fp, int ifuseanony)
if (!strcmp(cuser.userid, STR_GUEST)) {
fprintf(fp, "\n--\n※ 發信站 :" BBSNAME "(" MYHOSTNAME
- ") \n◆ From: %s\n", fromhost);
+ ") \n◆ From: %s\n", FROMHOST);
return;
}
if (!ifuseanony) {
@@ -1646,7 +1646,7 @@ browse_sigs:
{
char temp[33];
- strlcpy(temp, fromhost, sizeof(temp));
+ strlcpy(temp, FROMHOST, sizeof(temp));
fprintf(fp, "\n--\n※ 發信站: " BBSNAME "(" MYHOSTNAME
") \n◆ From: %s\n", temp);
}
@@ -1826,7 +1826,8 @@ write_file(char *fpath, int saveheader, int *islocal, char *mytitle, int upload,
ptime = localtime4(&now);
fprintf(fp,
"※ 編輯: %-15s 來自: %-20s (%02d/%02d %02d:%02d)\n",
- cuser.userid, fromhost,
+ cuser.userid,
+ FROMHOST,
ptime->tm_mon + 1, ptime->tm_mday,
ptime->tm_hour, ptime->tm_min);
}