summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-19 17:32:38 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-01-19 17:32:38 +0800
commitfeea3d3fe713669d37e21c66b1e7cb57019ef9f7 (patch)
treeb2488cbd0526d9651ee66427a8e710e16bc95fb8
parent48f071ae93ea078dbe74d734654c2d76096cc2f6 (diff)
downloadpttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar.gz
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar.bz2
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar.lz
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar.xz
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.tar.zst
pttbbs-feea3d3fe713669d37e21c66b1e7cb57019ef9f7.zip
revert last commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2412 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c9
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);