summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-12-26 15:53:25 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2013-12-26 15:53:25 +0800
commit64d1dc911bae4410e698234a2ea83812206141bc (patch)
tree480257a2dc3dfd44cf107867b1cedbc1bf71db87
parente0431c302ec07ce70c709eaa7cf72949f5aae3f2 (diff)
downloadpttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar.gz
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar.bz2
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar.lz
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar.xz
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.tar.zst
pttbbs-64d1dc911bae4410e698234a2ea83812206141bc.zip
Alert file deletion error.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5907 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index b87dba50..9c901859 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -3383,10 +3383,15 @@ del_post(int ent, fileheader_t * fhdr, char *direct)
return DONOTHING;
}
+ /* DIGEST is not visible to users... */
if ((fhdr->filemode & FILE_BOTTOM) ||
- (fhdr->filemode & FILE_MARKED) || (fhdr->filemode & FILE_DIGEST) ||
- (fhdr->owner[0] == '-'))
- return DONOTHING;
+ (fhdr->filemode & FILE_MARKED) || (fhdr->filemode & FILE_DIGEST)) {
+ vmsg("文章被標記或置底或收入文摘,無法刪除,請洽板主");
+ return DONOTHING;
+ }
+
+ if (fhdr->owner[0] == '-')
+ return DONOTHING;
is_anon = (fhdr->filemode & FILE_ANONYMOUS);
if(is_anon)