summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-03-28 09:39:38 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-03-28 09:39:38 +0800
commitf9d8df377c9725ba53e805379738aaf8dff1b25d (patch)
treea02899de10f507e75db9f98ded1ed1d655b9e541 /mbbsd/bbs.c
parentfc5a307fe3e037fc6b33475e1ab744054b030493 (diff)
downloadpttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar.gz
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar.bz2
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar.lz
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar.xz
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.tar.zst
pttbbs-f9d8df377c9725ba53e805379738aaf8dff1b25d.zip
add LOGPOST
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3497 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 0b11fe81..a7160a0c 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -964,6 +964,15 @@ do_general(int isbid)
else
{
rename(genbuf, fpath);
+#ifdef LOGPOST
+ {
+ FILE *fp = fopen("log/post", "a");
+ fprintf(fp, "%d %s boards/%c/%s/%s\n",
+ now, cuser.userid, currboard[0], currboard,
+ postfile.filename);
+ fclose(fp);
+ }
+#endif
setbtotal(currbid);
if( currmode & MODE_SELECT )