From 45c2f1b0575f9aa99e79a671d0998e122cff58af Mon Sep 17 00:00:00 2001 From: wens Date: Fri, 3 Dec 2004 07:22:59 +0000 Subject: 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 --- mbbsd/bbs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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, -- cgit v1.2.3