summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:56:28 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-25 02:56:28 +0800
commitc70054b024b28b5e57c2864a2c35df607737553f (patch)
treeac824f6db51dbd978177d45eea23306571e29a69
parentddc3595ab1076fdf1509686f20c4b106647f83d7 (diff)
downloadpttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar.gz
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar.bz2
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar.lz
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar.xz
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.tar.zst
pttbbs-c70054b024b28b5e57c2864a2c35df607737553f.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@206 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/board.c4
-rw-r--r--mbbsd/talk.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/board.c b/mbbsd/board.c
index e8718ea4..5c030b4b 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -1,4 +1,4 @@
-/* $Id: board.c,v 1.14 2002/05/24 18:42:51 ptt Exp $ */
+/* $Id: board.c,v 1.15 2002/05/24 18:56:28 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -692,7 +692,7 @@ void setutmpbid(int bid)
if(u!=(void*)currutmp)
for(;u && u->nextbfriend != (void*)currutmp; u=u->nextbfriend);
else
- bcache[bid-1].u=NULL;
+ bcache[id-1].u=NULL;
if(u)
{
bcache[id-1].nuser--;
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 76069b61..e84831d4 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.40 2002/05/24 18:42:51 ptt Exp $ */
+/* $Id: talk.c,v 1.41 2002/05/24 18:56:28 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -47,7 +47,6 @@ extern boardheader_t *bcache;
extern userec_t cuser;
extern userec_t xuser;
extern time_t now;
-extern int currbid;
static char *IdleTypeTable[] = {
"偶在花呆啦", "情人來電", "覓食中", "拜見周公", "假死狀態", "我在思考"
};
@@ -1657,7 +1656,8 @@ static void draw_pickup(int drawall, pickup_t *pickup, int pickup_way,
"\033[33m與我為友:%-3d\033[36m板友:%-4d\033[31m壞人:"
"%-2d\033[m\n",
msg_pickup_way[pickup_way], utmpshm->number,
- myfriend, friendme, bcache[currbid-1].nuser, 0);
+ myfriend, friendme,
+ currutmp->brc_id? bcache[currutmp->brc_id-1].nuser, 0);
move(3, 0);
for( i = 0, ch = page * 20 + 1 ; i < MAXPICKUP ; ++i, ++ch ){