diff options
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 15 |
1 files changed, 6 insertions, 9 deletions
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") || |