From 2219ad3e3f26c4d3bf0727c26bda398133e6e42e Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 19 May 2004 14:27:43 +0000 Subject: fix bug of unable to change the title while reediting git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2008 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index d448bbc0..a48ad6af 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -912,10 +912,11 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) if (vedit(fpath, 0, NULL) != -1) { Rename(fpath, genbuf); -/* Ptt: The code is unnecessary now because use the same name as original name - if (!(currbrdattr & BRD_HIDE) && (!bp->level || (currbrdattr & BRD_POSTMASK))) - do_crosspost(ALLPOST, fhdr, fpath); -*/ + if(strcmp(save_title, fhdr->title)) // Ptt: here is the black hole problem + { + strcpy(fhdr->title, save_title); + substitute_ref_record(direct, fhdr, ent); + } } return FULLUPDATE; } -- cgit v1.2.3