diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 12:17:35 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-09 12:17:35 +0800 |
commit | 5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3 (patch) | |
tree | e19965f3c6c0cf7acaed3949117f3e66ec2a39b1 /mbbsd/announce.c | |
parent | 0fcff566e893ab1046e7319fe436ea6b1bb93e05 (diff) | |
download | pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar.gz pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar.bz2 pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar.lz pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar.xz pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.tar.zst pttbbs-5f4c0ce8c7d09a05b86097ad923bcbd84cc3d9c3.zip |
- bbs: fixed: BM can skip PostRestriction check for x-crosspost.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4106 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 65a02ed2..7f92a37a 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -808,7 +808,7 @@ a_delete(menu_t * pm) if (delete_record(buf, FHSZ, pm->now + 1) == -1) return; - setbpath(buf, "deleted"); + setbpath(buf, BN_DELETED); stampfile(buf, &backup); strlcpy(backup.owner, cuser.userid, sizeof(backup.owner)); strlcpy(backup.title, @@ -818,7 +818,7 @@ a_delete(menu_t * pm) snprintf(cmd, sizeof(cmd), "mv -f %s %s", fpath, buf); system(cmd); - setbdir(buf, "deleted"); + setbdir(buf, BN_DELETED); append_record(buf, &backup, sizeof(backup)); } else if (dashd(fpath)) { getdata(b_lines - 1, 1, "您確定要刪除整個目錄嗎(Y/N)?[N] ", ans, @@ -828,7 +828,7 @@ a_delete(menu_t * pm) if (delete_record(buf, FHSZ, pm->now + 1) == -1) return; - setapath(buf, "deleted"); + setapath(buf, BN_DELETED); stampdir(buf, &backup); snprintf(cmd, sizeof(cmd), @@ -841,9 +841,9 @@ a_delete(menu_t * pm) pm->header[pm->now - pm->page].title + 2, sizeof(backup.title) - 3); - /* merge setapath(buf, "deleted"); setadir(buf, buf); */ + /* merge setapath(buf, BN_DELETED); setadir(buf, buf); */ snprintf(buf, sizeof(buf), "man/boards/%c/%s/" FN_DIR, - 'd', "deleted"); + 'd', BN_DELETED); append_record(buf, &backup, sizeof(backup)); } else { /* Ptt 損毀的項目 */ getdata(b_lines - 1, 1, "您確定要刪除此損毀的項目嗎(Y/N)?[N] ", |