diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-20 22:00:30 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-11-20 22:00:30 +0800 |
commit | c28b22f9df8800338a59bc7c793255d4cccf4506 (patch) | |
tree | 1fbebe0cbabccc3e4992aabcf262d0ed1363b965 /mbbsd | |
parent | 9c94a379cb7b1d079553e175539eb7473d2f438e (diff) | |
download | pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar.gz pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar.bz2 pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar.lz pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar.xz pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.tar.zst pttbbs-c28b22f9df8800338a59bc7c793255d4cccf4506.zip |
added forgotten check XD
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2343 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-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); |