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
commit7986c60cafb36fe29f73e9cc9f18cfef610fed84 (patch)
treecb15d76b490ebbf776e73b54acdf8672252d79fa
parentd3e9df669620ab9a42301e8bf1b24a3273eae520 (diff)
downloadpttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar.gz
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar.bz2
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar.lz
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar.xz
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.tar.zst
pttbbs-7986c60cafb36fe29f73e9cc9f18cfef610fed84.zip
fix bug in b_changerecommend
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1348 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/bbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index 6601dbd0..63c44ac6 100644
--- a/mbbsd/bbs.c
+++ b/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);