summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-22 23:03:52 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-22 23:03:52 +0800
commita1d2b5a7522d4a225309c7c3a0215388e9e26f3b (patch)
tree9aab3257f8c3b75e054fb91ed512fea8d3797ca7 /mbbsd/bbs.c
parent369ac1934a26c796897a370a4669b5d3a922c93c (diff)
downloadpttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.gz
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.bz2
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.lz
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.xz
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.zst
pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.zip
1. patch of defining BBSENAME
2. chage log format for red envelope 3. remove unused function give_money_log 4. add log for deleting a post. (who delete it) 5. add log for changing basic permission. 6. add log for changing user's password and mail to notify user and witnesses. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2855 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 341ad324..51ac88a2 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -351,6 +351,7 @@ cancelpost(const fileheader_t *fh, int by_BM, char *newpath)
char genbuf[200];
char nick[STRLEN], fn1[STRLEN];
int len = 42-strlen(currboard);
+ struct tm *ptime = localtime4(&now);
if(!fh->filename[0]) return;
setbfile(fn1, currboard, fh->filename);
@@ -382,6 +383,8 @@ cancelpost(const fileheader_t *fh, int by_BM, char *newpath)
fclose(fout);
}
fclose(fin);
+ log_file(fn1, LOG_CREAT | LOG_VF, "\n¡° Deleted by: %s (%s) %d/%d",
+ cuser.userid, fromhost, ptime->tm_mon + 1, ptime->tm_mday);
Rename(fn1, newpath);
setbdir(genbuf, brd);
setbtotal(getbnum(brd));