diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-03 15:22:59 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-12-03 15:22:59 +0800 |
commit | 45c2f1b0575f9aa99e79a671d0998e122cff58af (patch) | |
tree | a27953968cbbd180deec2a3b54414f5786b001b5 | |
parent | 3655862b3fa51afaf5c01a2cfea600169f3cd609 (diff) | |
download | pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar.gz pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar.bz2 pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar.lz pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar.xz pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.tar.zst pttbbs-45c2f1b0575f9aa99e79a671d0998e122cff58af.zip |
add board to title for deleted articles as in ALLPOST
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2364 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index a3cec483..832c6182 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -344,7 +344,7 @@ cancelpost(fileheader_t *fh, int by_BM, char *newpath) fileheader_t postfile; char genbuf[200]; char nick[STRLEN], fn1[STRLEN]; - + int len = 42-strlen(currboard); if(!fh->filename[0]) return; setbfile(fn1, currboard, fh->filename); @@ -366,6 +366,7 @@ cancelpost(fileheader_t *fh, int by_BM, char *newpath) break; } } + sprintf(postfile.title,"%-*.*s.%s��", len, len, fh->title, currboard); if ((fout = fopen("innd/cancel.bntp", "a"))) { fprintf(fout, "%s\t%s\t%s\t%s\t%s\n", currboard, fh->filename, |