From eefc275d2541b5146dbeb8c1afdc241c4118799f Mon Sep 17 00:00:00 2001 From: scw Date: Sat, 5 Feb 2005 15:40:30 +0000 Subject: * In generalnamecomplete(), complete as more as possible when space (' ') is pressed. (As what 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 --- mbbsd/chc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'mbbsd/chc.c') diff --git a/mbbsd/chc.c b/mbbsd/chc.c index 32e8f1ec..3a18536c 100644 --- a/mbbsd/chc.c +++ b/mbbsd/chc.c @@ -1112,11 +1112,7 @@ chc_init_utmp(void) userinfo_t *uin; stand_title("·¡ªeº~¬É¤§ª§"); - generalnamecomplete(msg_uid, uident, sizeof(uident), - SHM->UTMPnumber, - completeutmp_compar, - completeutmp_permission, - completeutmp_getname); + CompleteOnlineUser(msg_uid, uident); if (uident[0] == '\0') return NULL; -- cgit v1.2.3