summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/cache.c4
-rw-r--r--mbbsd/talk.c15
2 files changed, 11 insertions, 8 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 4dcb271d..5d7bef6a 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.29 2002/05/25 16:34:35 ptt Exp $ */
+/* $Id: cache.c,v 1.30 2002/06/01 03:51:36 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -398,6 +398,8 @@ void sort_utmp()
}
utmpshm->number = count;
qsort(utmpshm->sorted[ns][0],count,sizeof(userinfo_t*),cmputmpuserid);
+ for(i=0; i<count; i++)
+ ((userinfo_t*)utmpshm->sorted[ns][0][i])->idoffset=i;
memcpy(utmpshm->sorted[ns][1],utmpshm->sorted[ns][0],
sizeof(userinfo_t *)*count);
memcpy(utmpshm->sorted[ns][2],utmpshm->sorted[ns][0],
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 2097417f..6f96a52f 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.54 2002/06/01 00:34:49 ptt Exp $ */
+/* $Id: talk.c,v 1.55 2002/06/01 03:51:36 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -2106,11 +2106,6 @@ static void userlist(void)
}
break;
- case 'K': /* ½ð¤H */
- if( HAS_PERM(PERM_ACCOUNTS) ){
- }
- break;
-
case 'i':
move(3,0);
clrtobot();
@@ -2139,7 +2134,13 @@ static void userlist(void)
}
}
break;
-
+ case 'K':
+ if(HAS_PERM(PERM_ACCOUNTS))
+ {
+ my_kick(uentp);
+ redrawall = redraw = 1;
+ }
+ break;
case 'w':
if(call_in(uentp,fri_stat))
redrawall = redraw = 1;