summaryrefslogtreecommitdiffstats
path: root/mbbsd/bbs.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-29 01:46:46 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-10-29 01:46:46 +0800
commit63e0ebf1c3fa7e41cc54e2b115ef90496fab6913 (patch)
treecdc2e9b6fe6730511f12ab364694431f16475d3a /mbbsd/bbs.c
parent86e272c57fde5a0ac315529e879e0eccd5469e1a (diff)
downloadpttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar.gz
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar.bz2
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar.lz
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar.xz
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.tar.zst
pttbbs-63e0ebf1c3fa7e41cc54e2b115ef90496fab6913.zip
* add macro ALLOW_RECOMMEND_NONLOCAL_SAVED_ARTICLE
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4411 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r--mbbsd/bbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index cbf18f6c..d27565a8 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -2762,10 +2762,12 @@ recommend(int ent, fileheader_t * fhdr, const char *direct)
return do_bid(ent, fhdr, bp, direct);
}
+#ifndef ALLOW_RECOMMEND_NONLOCAL_SAVED_ARTICLE
if ((bp->brdattr & BRD_NOTRAN) == 0 && (fhdr->filemode & FILE_LOCAL) == 0) {
vmsg("轉信板只有站內存檔的文章才能推文");
return FULLUPDATE;
}
+#endif
#ifndef DEBUG
if (!CheckPostRestriction(currbid))