diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-04 20:26:15 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-11-04 20:26:15 +0800 |
commit | 6779327793618746c878669f848b7ef44314d81c (patch) | |
tree | ac84843684d55e4e3c59ffcdeb3a6dafe3d15875 | |
parent | 7ee575296c8d75fbac071ca70812df2212c64521 (diff) | |
download | pttbbs-6779327793618746c878669f848b7ef44314d81c.tar pttbbs-6779327793618746c878669f848b7ef44314d81c.tar.gz pttbbs-6779327793618746c878669f848b7ef44314d81c.tar.bz2 pttbbs-6779327793618746c878669f848b7ef44314d81c.tar.lz pttbbs-6779327793618746c878669f848b7ef44314d81c.tar.xz pttbbs-6779327793618746c878669f848b7ef44314d81c.tar.zst pttbbs-6779327793618746c878669f848b7ef44314d81c.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1297 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/bbs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 1b55ff21..363dc628 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -2342,17 +2342,19 @@ change_counting(int ent, fileheader_t * fhdr, char *direct) get_record(fn_board, &bh, sizeof(bh), bid) == -1) return DONOTHING; + if (!(bh.brdattr & BRD_HIDE && bh.brdattr & BRD_POSTMASK)) + return FULLUPDATE; + if (bh.brdattr & BRD_BMCOUNT) { if (getans("目前板列入十大排行, 要取消列入十大排行嘛(Y/N)?[N]") != 'y') return FULLUPDATE; - bh.brdattr |= BRD_BMCOUNT; + bh.brdattr &= ~BRD_BMCOUNT; log_usies("NoCountBoard", bh.brdname); outs("你再灌水也不會有十大的呀。\n"); } else { if (getans("目前看板不列入十大排行, 要列入十大嘛(Y/N)?[N]") != 'y') return FULLUPDATE; - if (bh.brdattr & BRD_BMCOUNT) - bh.brdattr &= ~BRD_BMCOUNT; + bh.brdattr |= BRD_BMCOUNT; log_usies("CountBoard", bh.brdname); outs("快灌水衝十大第一吧。\n"); } |