diff options
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r-- | mbbsd/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 17710bf5..10e743a3 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -67,6 +67,14 @@ inline boardheader_t *getparent(const boardheader_t *fh) return NULL; } +// 程式中有特別用途所以不得自行 post / 修改的看板 +int +is_readonly_board(const char *bname) +{ + return (strcasecmp(bname, BN_SECURITY) == 0 || + strcasecmp(bname, BN_ALLPOST ) == 0 ); +} + /** * @param[in] boardname board name, case insensitive * @return 0 if success |