summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-12 00:42:45 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-12 00:42:45 +0800
commit57a5be6e350c332dbb60f48f3d040171e6918277 (patch)
tree92bd33c603c1c5aa49db128564331972bbd621c9 /mbbsd/talk.c
parent8d3b776476b6446d59e4a36275e924d14371906e (diff)
downloadpttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar.gz
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar.bz2
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar.lz
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar.xz
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.tar.zst
pttbbs-57a5be6e350c332dbb60f48f3d040171e6918277.zip
generalnamecomplete,
userlist complete git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@161 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 114668c0..e7245351 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.30 2002/05/11 15:30:31 in2 Exp $ */
+/* $Id: talk.c,v 1.31 2002/05/11 16:42:45 in2 Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -1425,6 +1425,7 @@ static void t_showhelp() {
pressanykey();
}
+/*
static int listcuent(userinfo_t * uentp)
{
if((!uentp->invisible || HAS_PERM(PERM_SYSOP) || HAS_PERM(PERM_SEECLOAK)))
@@ -1437,14 +1438,18 @@ static void creat_list()
CreateNameList();
apply_ulist(listcuent);
}
+*/
static int search_pickup(int num, int actor, pickup_t pklist[])
{
char genbuf[IDLEN + 2];
move(1, 0);
- creat_list();
- namecomplete(msg_uid, genbuf);
+ generalnamecomplete(msg_uid, genbuf, sizeof(genbuf),
+ utmpshm->number,
+ completeutmp_compar,
+ completeutmp_permission,
+ completeutmp_getname);
if (genbuf[0]){
int n = (num + 1) % actor;
while (n != num){
@@ -2306,8 +2311,11 @@ int t_talk() {
}
*/
stand_title("¥´¶}¸Ü§X¤l");
- creat_list();
- namecomplete(msg_uid, uident);
+ generalnamecomplete(msg_uid, genbuf, sizeof(genbuf),
+ utmpshm->number,
+ completeutmp_compar,
+ completeutmp_permission,
+ completeutmp_getname);
if (uident[0] == '\0')
return 0;