From e622c0cf62ea5d05a0923cb22555397a77387e24 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 30 Jan 2004 12:18:13 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 7325872f..d4a53fe8 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -430,17 +430,14 @@ static time_t water_counts = 0; #endif void -do_crosspost(char *brd, fileheader_t *postfile, const char *fpath, const char *owner) +do_crosspost(char *brd, fileheader_t *postfile, const char *fpath) { char genbuf[200]; setbpath(genbuf, brd); stampfile(genbuf, postfile); unlink(genbuf); - Link(fpath, genbuf); - strlcpy(postfile->owner, owner, sizeof(postfile->owner)); - strlcpy(postfile->title, save_title, sizeof(postfile->title)); postfile->filemode = FILE_LOCAL; setbdir(genbuf, brd); if (append_record(genbuf, postfile, sizeof(fileheader_t)) != -1) { @@ -448,9 +445,9 @@ do_crosspost(char *brd, fileheader_t *postfile, const char *fpath, const char *o } } void -do_allpost(fileheader_t *postfile, const char *fpath, const char *owner) +do_allpost(fileheader_t *postfile, const char *fpath) { - do_crosspost(ALLPOST, postfile, fpath, owner); + do_crosspost(ALLPOST, postfile, fpath); } static void setupbidinfo(bid_t *bidinfo) @@ -689,7 +686,7 @@ do_general(int isbid) if (!(currbrdattr & BRD_HIDE) && (!bp->level || (currbrdattr & BRD_POSTMASK))) { - do_allpost(&postfile, fpath, owner); + do_allpost(&postfile, fpath); } outs("順利貼出佈告,"); @@ -999,7 +996,7 @@ edit_post(int ent, fileheader_t * fhdr, char *direct) } if (!(currbrdattr & BRD_HIDE) && (!bp->level || (currbrdattr & BRD_POSTMASK))) - do_allpost(&postfile, fpath, cuser.userid); + do_allpost(&postfile, fpath); return FULLUPDATE; } @@ -2306,7 +2303,7 @@ good_post(int ent, fileheader_t * fhdr, char *direct) append_record(buf, &digest, sizeof(digest)); getdata(1, 0, "好文值得出版到Ptt文摘?(Y/n)", genbuf2, 3, LCECHO); if(genbuf2[0]!='n') - do_crosspost("PttDigest", &digest, genbuf, fhdr->owner); + do_crosspost("PttDigest", &digest, genbuf); fhdr->filemode = (fhdr->filemode & ~FILE_MARKED) | FILE_DIGEST; if (!strcmp(currboard, "Note") || !strcmp(currboard, "PttBug") || -- cgit v1.2.3