diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-19 15:59:14 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-08-19 15:59:14 +0800 |
commit | 37a5fc404945e2dca7a9e0a930df139a4e9a7a9e (patch) | |
tree | dcc7269d5617dc5f352a5b6d82862e38bab1fd44 /mbbsd/announce.c | |
parent | 4f7966520c2a9909be561e1a3070e24544c253bc (diff) | |
download | pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar.gz pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar.bz2 pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar.lz pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar.xz pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.tar.zst pttbbs-37a5fc404945e2dca7a9e0a930df139a4e9a7a9e.zip |
paste taged file across board and mailbox
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1109 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 92b89d7f..4dc5438e 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1,4 +1,4 @@ -/* $Id: announce.c,v 1.31 2003/07/20 00:55:34 in2 Exp $ */ +/* $Id$ */ #include "bbs.h" #define PATHLEN 256 @@ -438,11 +438,18 @@ static int a_pastetagpost(menu_t * pm, int mode) { fileheader_t fhdr; + boardheader_t *bh; int ans = 0, ent = 0, tagnum; char title[TTLEN + 1] = "¡º "; char dirname[200], buf[200]; - setbdir(dirname, currboard); + if (TagBoard == 0){ + sethomedir(dirname, cuser.userid); + } + else{ + bh = getbcache(TagBoard); + setbdir(dirname, bh->brdname); + } tagnum = TagNum; if (!tagnum) @@ -450,7 +457,10 @@ a_pastetagpost(menu_t * pm, int mode) while (tagnum--) { EnumTagFhdr(&fhdr, dirname, ent++); - setbfile(buf, currboard, fhdr.filename); + if (TagBoard == 0) + sethomefile(buf, cuser.userid, fhdr.filename); + else + setbfile(buf, bh->brdname, fhdr.filename); if (dashf(buf)) { strncpy(title + 3, fhdr.title, TTLEN - 3); @@ -464,7 +474,7 @@ a_pastetagpost(menu_t * pm, int mode) ++ans; UnTagger(tagnum); } - }; + } return ans; } |