summaryrefslogtreecommitdiffstats
path: root/mbbsd/announce.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-11 03:34:51 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-11 03:34:51 +0800
commit2dfc361a325dd07137c7b524f3d472d3d14cda81 (patch)
treefcef381874281fbffb3a85b58d7476ed7604ea27 /mbbsd/announce.c
parent8b5ca7e36cb6925e19ff6b755ac61bcdfc1dc6a7 (diff)
downloadpttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar.gz
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar.bz2
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar.lz
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar.xz
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.tar.zst
pttbbs-2dfc361a325dd07137c7b524f3d472d3d14cda81.zip
general namecomplete
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@159 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r--mbbsd/announce.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 2064ba9d..bc05fca6 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -1,4 +1,4 @@
-/* $Id: announce.c,v 1.6 2002/04/29 07:05:45 in2 Exp $ */
+/* $Id: announce.c,v 1.7 2002/05/10 19:34:51 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -20,6 +20,7 @@
#include "modes.h"
#include "proto.h"
+extern struct bcache_t *brdshm;
extern int b_lines;
extern int p_lines;
extern int TagNum;
@@ -506,8 +507,11 @@ static int AnnounceSelect() {
move(3, 0);
clrtoeol();
move(1, 0);
- make_blist();
- namecomplete("選擇精華區看板:", buf);
+ generalnamecomplete("選擇精華區看板:", buf, sizeof(buf),
+ brdshm->number,
+ completeboard_compar,
+ completeboard_permission,
+ completeboard_getname);
if(*buf)
strcpy(xboard, buf);
if(*xboard && (bp = getbcache(getbnum(xboard)))) {