summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-09 00:05:03 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-09 00:05:03 +0800
commit66cc85d5a635f7acd24d706704002b3aecd7ad8c (patch)
tree3661488591ac9fb9b24ef73cc70eb5be857bed57
parent4d1e9203c8b08b9c7babf9b01071bba634ba9a9f (diff)
downloadpttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar.gz
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar.bz2
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar.lz
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar.xz
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.tar.zst
pttbbs-66cc85d5a635f7acd24d706704002b3aecd7ad8c.zip
fix rm fav while > max
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@781 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index a6cc38e2..c39f704d 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.121 2003/04/04 16:06:02 victor Exp $ */
+/* $Id: board.c,v 1.122 2003/04/08 16:05:03 victor Exp $ */
#include "bbs.h"
#define BRC_STRLEN 15 /* Length of board name */
#define BRC_MAXSIZE 24576
@@ -1260,7 +1260,7 @@ choose_board(int newflag)
delfavline(nbrd[num].bid, num);
brdnum = -1;
}
- else if(fav->nDatas > FAVMAX){
+ else if(!(nbrd[num].myattr & BRD_FAV) && (fav->nDatas > FAVMAX)){
vmsg("你的最愛太多了啦 真花心");
break;
}