diff options
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 3c59cdc9..361738e3 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1152,17 +1152,20 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct) int temp; boardheader_t *bp = NULL; - if (!HAS_PERM(PERM_SYSOP)) + if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP))) return DONOTHING; bp = getbcache(currbid); - strcpy(buf, "更改 (A)本板發表限制 (B)本板預設"); + strcpy(buf, "更改 "); + if (HAS_PERM(PERM_SYSOP)) + strcat(buf, "(A)本板發表限制 "); + strcat(buf, "(B)本板預設"); if (fhdr->filemode & FILE_VOTE) strcat(buf, " (C)本篇"); strcat(buf, "連署限制 (Q)取消?[Q]"); genbuf[0] = getans(buf); - if (genbuf[0] == 'a') { + if (HAS_PERM(PERM_SYSOP) && genbuf[0] == 'a') { sprintf(genbuf, "%u", bp->post_limit_logins * 10); do { getdata_buf(b_lines - 1, 0, "上站次數下限 (0~2550):", genbuf, 5, LCECHO); |