summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-16 11:35:44 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-16 11:35:44 +0800
commitc72d2bd6a04381c1957605a3625e39f152cce686 (patch)
tree2c7f0525f42a8b106650e234bc928439a629ecfb
parent57a55751e6db4702375a0c9353b8d394450a6645 (diff)
downloadpttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar.gz
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar.bz2
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar.lz
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar.xz
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.tar.zst
pttbbs-c72d2bd6a04381c1957605a3625e39f152cce686.zip
fix bug in b_changerecommend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@1348 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 6601dbd0..63c44ac6 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -2331,6 +2331,7 @@ b_changerecommend(int ent, fileheader_t * fhdr, char *direct)
{
boardheader_t *bp=NULL;
if (!((currmode & MODE_BOARD) || HAS_PERM(PERM_SYSOP)))
+ return DONOTHING;
bp = getbcache(currbid);
bp->brdattr ^= BRD_NORECOMMEND;
substitute_record(fn_board, bp, sizeof(boardheader_t), currbid);