summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 20:18:13 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-30 20:18:13 +0800
commite622c0cf62ea5d05a0923cb22555397a77387e24 (patch)
tree41d11d10b8bf5663a94e29c81b8ea06395842fbb
parentf5dd4a6a82720df1d5a13a404aa4a02ed012e6fb (diff)
downloadpttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar.gz
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar.bz2
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar.lz
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar.xz
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.tar.zst
pttbbs-e622c0cf62ea5d05a0923cb22555397a77387e24.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1492 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c15
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") ||