summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/board.c7
-rw-r--r--mbbsd/fav.c2
2 files changed, 4 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 57a5519b..6d766ff3 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -282,7 +282,6 @@ brc_unread(const char *fname, int bnum, const int *blist)
#define NBRD_SYMBOLIC 64
#define TITLE_MATCH(bptr, key) ((key)[0] && !strcasestr((bptr)->title, (key)))
-#define GROUPOP() (currmode & MODE_GROUPOP)
#define B_TOTAL(bptr) (SHM->total[(bptr)->bid - 1])
@@ -327,7 +326,7 @@ void load_brdbuf(void)
fav_load();
/* subscribe new fav (deprecated) */
- if (fav_stack_num <= 0)
+ if (get_fav_root() == NULL)
updatenewfav(1);
}
@@ -556,7 +555,7 @@ load_boards(char *key)
nbrd = (boardstat_t *)malloc(sizeof(boardstat_t) * SHM->nHOTs);
for( i = 0 ; i < SHM->nHOTs ; ++i )
addnewbrdstat(SHM->HBcache[i] - SHM->bcache,
- Ben_Perm(SHM->HBcache[i]));
+ HasPerm(SHM->HBcache[i]));
}
#endif
else { // general case
@@ -567,7 +566,7 @@ load_boards(char *key)
n = getbid(bptr);
if (!bptr->brdname[0] ||
(bptr->brdattr & (BRD_GROUPBOARD | BRD_SYMBOLIC)) ||
- !((state = Ben_Perm(bptr)) || GROUPOP()) ||
+ !((state = HasPerm(bptr)) || GROUPOP()) ||
TITLE_MATCH(bptr, key)
#ifndef HOTBOARDCACHE
|| (class_bid == -1 && bptr->nuser < 5)
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 4cf1da34..45b8b615 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -205,7 +205,7 @@ fav_item_copy(fav_type_t *target, const fav_type_t *source){
target->fp = source->fp;
}
-inline static fav_t *get_fav_root(void){
+inline fav_t *get_fav_root(void){
return fav_stack[0];
}