diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-03 17:48:57 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-03 17:48:57 +0800 |
commit | 63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a (patch) | |
tree | 75422d9ebbd6142b0f01fb4c68f024f70edf4194 | |
parent | d9dd9c420e7d6429c8e941a5c7a83d7381dfef5e (diff) | |
download | pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar.gz pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar.bz2 pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar.lz pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar.xz pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.tar.zst pttbbs-63bc2dad6f3d3fdb6b3495a4eda10a14a5647c6a.zip |
dont remove a non-exist board when logout
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1455 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/pttstruct.h | 3 | ||||
-rw-r--r-- | mbbsd/fav.c | 6 | ||||
-rw-r--r-- | util/shmctl.c | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 01e7e61c..92889865 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -378,9 +378,6 @@ typedef struct { int Bbusystate; time_t close_vote_time; - /* if true, fav.c:cleanup() will remove the invalid boards from record. */ - char cleanboard; - /* pttcache */ char notes[MAX_MOVIE][200*11]; char today_is[20]; diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 4358f425..587dc041 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -224,7 +224,7 @@ inline int is_visible_item(fav_type_t *ft){ */ static void rebuild_fav(fav_t *fp) { - int i, j, nData, bid; + int i, j, nData; fav_type_t *ft; fav_number = 0; fp->lineID = fp->folderID = 0; @@ -235,11 +235,13 @@ static void rebuild_fav(fav_t *fp) continue; ft = &fp->favh[i]; switch (get_item_type(ft)){ +/* case FAVT_BOARD: bid = cast_board(ft)->bid; - if (SHM->cleanboard && bcache[bid - 1].brdname[0]) + if (SHM->GV2.e.cleanboard && bcache[bid - 1].brdname[0]) continue; break; +*/ case FAVT_LINE: cast_line(ft)->lid = fp->lineID + 1; break; diff --git a/util/shmctl.c b/util/shmctl.c index 1b7d5350..fad17e36 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -579,8 +579,6 @@ int SHMinit(int argc, char **argv) buildclass(0, 0); #endif - SHM->cleanboard = 0; - if( !no_uhash_loader ){ puts("utmpsortd..."); utmpsortd(1, NULL); |