summaryrefslogtreecommitdiffstats
path: root/mbbsd/board.c
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 23:40:30 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-05 23:40:30 +0800
commiteefc275d2541b5146dbeb8c1afdc241c4118799f (patch)
treeaeed6591c44758139ae39cd6b48ad4b470328a66 /mbbsd/board.c
parentb5158ac3a4014ecd88d4d9f78ecbcf6ec3f6b6ce (diff)
downloadpttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar.gz
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar.bz2
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar.lz
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar.xz
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.tar.zst
pttbbs-eefc275d2541b5146dbeb8c1afdc241c4118799f.zip
* In generalnamecomplete(), complete as more as possible when space (' ')
is pressed. (As what <tab> does in most shell) * In all three completing functions (namecomplete, usercomplete and generalnamecomplete), return null string instead of partial matched name which makes users able to talk/annoy those they are not supposed to talk to (admins or cloaks). * Type of parameters of generalnamecomplete has typedefed and should be clearer. * New macro CompleteBoard and CompleteOnlineUser are defined since most of the usage of generalnamecomplete are the same. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/board.c')
-rw-r--r--mbbsd/board.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index dba735f2..b5ab2413 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1055,14 +1055,9 @@ choose_board(int newflag)
int bid;
move(0, 0);
clrtoeol();
- generalnamecomplete(
- "\033[7m【 增加我的最愛 】\033[m\n"
+ CompleteBoard("\033[7m【 增加我的最愛 】\033[m\n"
"請輸入欲加入的看板名稱(按空白鍵自動搜尋):",
- bname, sizeof(bname),
- SHM->Bnumber,
- completeboard_compar,
- completeboard_permission,
- completeboard_getname);
+ bname);
if (bname[0] && (bid = getbnum(bname)) &&
HasPerm(getbcache(bid))) {