diff options
-rw-r--r-- | mbbsd/admin.c | 16 | ||||
-rw-r--r-- | mbbsd/bbs.c | 2 |
2 files changed, 10 insertions, 8 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 4f4bd90c..54cf243d 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -551,13 +551,15 @@ m_mod_board(char *bname) strlcpy(newbh.BM, genbuf, sizeof(newbh.BM)); } #ifdef CHESSCOUNTRY - snprintf(genbuf, sizeof(genbuf), "%d", bh.chesscountry); - if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋", ans, - sizeof(ans), LCECHO, genbuf)){ - newbh.chesscountry = atoi(ans); - if (newbh.chesscountry > CHESSCODE_MAX || - newbh.chesscountry < CHESSCODE_NONE) - newbh.chesscountry = bh.chesscountry; + if (HAS_PERM(PERM_SYSOP)) { + snprintf(genbuf, sizeof(genbuf), "%d", bh.chesscountry); + if (getdata_str(16, 0, "設定棋國 (0)無 (1)五子棋 (2)象棋", ans, + sizeof(ans), LCECHO, genbuf)){ + newbh.chesscountry = atoi(ans); + if (newbh.chesscountry > CHESSCODE_MAX || + newbh.chesscountry < CHESSCODE_NONE) + newbh.chesscountry = bh.chesscountry; + } } #endif /* defined(CHESSCOUNTRY) */ if (HAS_PERM(PERM_SYSOP|PERM_BOARD)) { diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 2bb56bed..dfdc2841 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2489,7 +2489,7 @@ change_localsave(int ent, fileheader_t * fhdr, char *direct) static int change_restrictedpost(int ent, fileheader_t * fhdr, char *direct){ boardheader_t *bp; - if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP))) + if (HAS_PERM(PERM_SYSOP)) return DONOTHING; bp = getbcache(currbid); |