diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-19 17:19:37 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-01-19 17:19:37 +0800 |
commit | 48f071ae93ea078dbe74d734654c2d76096cc2f6 (patch) | |
tree | a806dd1a9b1efad0d68b134ee0f56fce7c7a82c1 /mbbsd/bbs.c | |
parent | f3e6e09261ce565c4006d02296e8721d9b6e07b6 (diff) | |
download | pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar.gz pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar.bz2 pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar.lz pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar.xz pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.tar.zst pttbbs-48f071ae93ea078dbe74d734654c2d76096cc2f6.zip |
limitedit should be SYSOP only
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2411 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 361738e3..3c59cdc9 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1152,20 +1152,17 @@ do_limitedit(int ent, fileheader_t * fhdr, char *direct) int temp; boardheader_t *bp = NULL; - if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP))) + if (!HAS_PERM(PERM_SYSOP)) return DONOTHING; bp = getbcache(currbid); - strcpy(buf, "更改 "); - if (HAS_PERM(PERM_SYSOP)) - strcat(buf, "(A)本板發表限制 "); - strcat(buf, "(B)本板預設"); + strcpy(buf, "更改 (A)本板發表限制 (B)本板預設"); if (fhdr->filemode & FILE_VOTE) strcat(buf, " (C)本篇"); strcat(buf, "連署限制 (Q)取消?[Q]"); genbuf[0] = getans(buf); - if (HAS_PERM(PERM_SYSOP) && genbuf[0] == 'a') { + if (genbuf[0] == 'a') { sprintf(genbuf, "%u", bp->post_limit_logins * 10); do { getdata_buf(b_lines - 1, 0, "上站次數下限 (0~2550):", genbuf, 5, LCECHO); |