From 3c2d03bf002f773219b214e14431a4423c577aad Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 12 Feb 2005 13:51:57 +0000 Subject: Complete groups as well as boards in m_board() git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2504 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/name.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mbbsd/name.c') diff --git a/mbbsd/name.c b/mbbsd/name.c index b657e854..60afab03 100644 --- a/mbbsd/name.c +++ b/mbbsd/name.c @@ -716,6 +716,15 @@ completeboard_permission(int where) !(bptr->brdattr & BRD_GROUPBOARD)); } +int +complete_board_and_group_permission(int where) +{ + boardheader_t *bptr = &bcache[SHM->bsorted[0][where]]; + return (!(bptr->brdattr & BRD_SYMBOLIC) && + (GROUPOP() || HasPerm(bptr))); + +} + char * completeboard_getname(int where) { -- cgit v1.2.3