diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-01 11:51:36 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-01 11:51:36 +0800 |
commit | 4d84045d9c329601e443cd20c4c05b3cfc8f8773 (patch) | |
tree | b11364d4f9d06dcace056e3ad275bbe912ac4d0d | |
parent | 914084b55532410237b7d11d81a5ec28ff59747c (diff) | |
download | pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar.gz pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar.bz2 pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar.lz pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar.xz pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.tar.zst pttbbs-4d84045d9c329601e443cd20c4c05b3cfc8f8773.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@267 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/cache.c | 4 | ||||
-rw-r--r-- | mbbsd/talk.c | 15 |
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; |