diff options
-rw-r--r-- | mbbsd/voteboard.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index 852b297b..c2e191a6 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -12,6 +12,8 @@ do_votelimitedit(int ent, fileheader_t * fhdr, char *direct) if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP))) return DONOTHING; bp = getbcache(currbid); + if (!(bp->brdattr & BRD_VOTEBOARD || (fhdr->filemode & FILE_VOTE))) + return DONOTHING; getdata(23, 0, "更改 (A)本篇 (B)本版預設連署限制 (C)取消?[C]", genbuf, 3, LCECHO); if (genbuf[0] == 'a' || genbuf[0] == 'A') { sprintf(genbuf, "%u", ((fhdr->money >> 8) & 0xF) * 10); |