diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-05 23:40:30 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-05 23:40:30 +0800 |
commit | eefc275d2541b5146dbeb8c1afdc241c4118799f (patch) | |
tree | aeed6591c44758139ae39cd6b48ad4b470328a66 /mbbsd/admin.c | |
parent | b5158ac3a4014ecd88d4d9f78ecbcf6ec3f6b6ce (diff) | |
download | pttbbs-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/admin.c')
-rw-r--r-- | mbbsd/admin.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 2151f934..01b4e3db 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -447,11 +447,7 @@ m_mod_board(char *bname) } else{ #endif - generalnamecomplete(MSG_SELECT_BOARD, frombname, sizeof(frombname), - SHM->Bnumber, - completeboard_compar, - completeboard_permission, - completeboard_getname); + CompleteBoard(MSG_SELECT_BOARD, frombname); if (frombname[0] == '\0' || !getbnum(frombname) || !strcmp(frombname,bname)) break; @@ -633,10 +629,7 @@ m_board() char bname[32]; stand_title("¬ÝªO³]©w"); - generalnamecomplete(msg_bid, bname, sizeof(bname), SHM->Bnumber, - completeboard_compar, - completeboard_permission, - completeboard_getname); + CompleteBoard(msg_bid, bname); if (!*bname) return 0; m_mod_board(bname); @@ -942,10 +935,7 @@ int make_symbolic_link_interactively(int gid) { char buf[32]; - generalnamecomplete(msg_bid, buf, sizeof(buf), SHM->Bnumber, - completeboard_compar, - completeboard_permission, - completeboard_getname); + CompleteBoard(msg_bid, buf); if (!buf[0]) return -1; |