From a32c8fe3ae96d64c0509a19ac403532275684677 Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 26 Feb 2013 12:54:52 +0000 Subject: Prevent locking ALLPOST. git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5796 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index b67526ad..092dc38c 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -3595,6 +3595,14 @@ lock_post(int ent, fileheader_t * fhdr, const char *direct) bp = getbcache(currbid); assert(bp); +#ifdef USE_LIVE_ALLPOST + // In case idiots do this in ALLPOST... + if (strcmp(bp->brdname, BN_ALLPOST) == 0) { + vmsgf("請至原看板鎖定。%s 會自動更新。", BN_ALLPOST); + return FULLUPDATE; + } +#endif + if (fhdr->filename[0]=='M') { if (!HasUserPerm(PERM_SYSOP | PERM_POLICE)) { vmsg("站長或特殊管理人員才可進行鎖定。板主只能解除鎖定。"); -- cgit v1.2.3