diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 21:51:57 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-12 21:51:57 +0800 |
commit | 3c2d03bf002f773219b214e14431a4423c577aad (patch) | |
tree | db3d8ed5fecd7d4e4a5ef321296cd01da42b72d0 /include | |
parent | 004bed327e87e05dcc7f673401ca45605a4cbaa5 (diff) | |
download | pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar.gz pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar.bz2 pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar.lz pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar.xz pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.tar.zst pttbbs-3c2d03bf002f773219b214e14431a4423c577aad.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h index df2c372b..a84c2fbb 100644 --- a/include/proto.h +++ b/include/proto.h @@ -386,6 +386,7 @@ int generalnamecomplete(char *prompt, char *data, int len, size_t nmemb, gnc_getname_func getname); int completeboard_compar(int where, char *str, int len); int completeboard_permission(int where); +int complete_board_and_group_permission(int where); char *completeboard_getname(int where); int completeutmp_compar(int where, char *str, int len); int completeutmp_permission(int where); @@ -395,6 +396,10 @@ char *completeutmp_getname(int where); generalnamecomplete(MSG, BUF, sizeof(BUF), SHM->Bnumber, \ &completeboard_compar, &completeboard_permission, \ &completeboard_getname) +#define CompleteBoardAndGroup(MSG,BUF) \ + generalnamecomplete(MSG, BUF, sizeof(BUF), SHM->Bnumber, \ + &completeboard_compar, &complete_board_and_group_permission, \ + &completeboard_getname) #define CompleteOnlineUser(MSG,BUF) \ generalnamecomplete(MSG, BUF, sizeof(BUF), SHM->UTMPnumber, \ &completeutmp_compar, &completeutmp_permission, \ |