summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-13 04:00:54 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-10-13 04:00:54 +0800
commit99b4edeccaa2850d2ef3851569b2d16485ef58b5 (patch)
treeaa367017b019d7ebc366b396d0c3f31cea4287ef /mbbsd/bbs.c
parentc8b01d234061bc0b668ad71798955a332ddd186e (diff)
downloadpttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar.gz
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar.bz2
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar.lz
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar.xz
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.tar.zst
pttbbs-99b4edeccaa2850d2ef3851569b2d16485ef58b5.zip
1. remove do_unanonymous_post function. It is almost the same as do_crosspost.
And it didn't touch the btotal. 2. Change setbtotal to touchbtotal at do_crosspost. Because this boards are not popular. To count .DIR every time is needless. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2247 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index e9bd8eee..8e9f8e7e 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -398,7 +398,7 @@ do_reply_title(int row, char *title)
if (genbuf2[0] == 'n' || genbuf2[0] == 'N')
getdata(++row, 0, "¼ÐÃD¡G", save_title, TTLEN, DOECHO);
}
-
+/*
static void
do_unanonymous_post(char *fpath)
{
@@ -418,7 +418,7 @@ do_unanonymous_post(char *fpath)
append_record(title, &mhdr, sizeof(mhdr));
}
}
-
+*/
#ifdef NO_WATER_POST
#ifndef DEBUG
static time_t last_post_time = 0;
@@ -444,7 +444,7 @@ do_crosspost(char *brd, fileheader_t *postfile, const char *fpath)
postfile->filemode = FILE_LOCAL;
setbdir(genbuf, brd);
if (append_record(genbuf, &fh, sizeof(fileheader_t)) != -1) {
- setbtotal(getbnum(brd));
+ touchbtotal(getbnum(brd));
}
}
static void
@@ -735,7 +735,7 @@ do_general(int isbid)
curredit ^= EDIT_BOTH;
}
if (currbrdattr & BRD_ANONYMOUS)
- do_unanonymous_post(fpath);
+ do_crosspost("UnAnonymous", &postfile, fpath);
}
pressanykey();
return FULLUPDATE;