diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-21 00:12:13 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-02-21 00:12:13 +0800 |
commit | bc8f6cabd574ecfeaec6318f4fb13626147bce94 (patch) | |
tree | 7c64be8d756d7efe6fa160fdce15e65aa7c89b4e /mbbsd | |
parent | b19af1051a701ce07f7275d35ce05821a680226d (diff) | |
download | pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar.gz pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar.bz2 pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar.lz pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar.xz pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.tar.zst pttbbs-bc8f6cabd574ecfeaec6318f4fb13626147bce94.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@669 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/board.c | 5 | ||||
-rw-r--r-- | mbbsd/name.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c index 32d0c628..28b1bc71 100644 --- a/mbbsd/board.c +++ b/mbbsd/board.c @@ -1,4 +1,4 @@ -/* $Id: board.c,v 1.81 2003/02/20 11:06:03 in2 Exp $ */ +/* $Id: board.c,v 1.82 2003/02/20 16:12:12 in2 Exp $ */ #include "bbs.h" #define BRC_STRLEN 15 /* Length of board name */ #define BRC_MAXSIZE 24576 @@ -414,9 +414,6 @@ Ben_Perm(boardheader_t * bptr) level = bptr->level; brdattr = bptr->brdattr; - if (brdattr & BRD_GROUPBOARD) - return 0; - if (HAS_PERM(PERM_SYSOP)) return 1; diff --git a/mbbsd/name.c b/mbbsd/name.c index ef1a4c5f..b16f19ef 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -1,4 +1,4 @@ -/* $Id: name.c,v 1.15 2003/01/17 08:49:34 kcwu Exp $ */ +/* $Id: name.c,v 1.16 2003/02/20 16:12:13 in2 Exp $ */ #include "bbs.h" static word_t *current = NULL; @@ -674,7 +674,8 @@ completeboard_compar(int where, char *str, int len) int completeboard_permission(int where) { - return Ben_Perm(SHM->bsorted[0][where]); + return (Ben_Perm(SHM->bsorted[0][where]) && + !(SHM->bsorted[0][where]->brdattr & BRD_GROUPBOARD)); } char * |