From 7c81f751b1e395ad0a7c69de1d8f9d1c7f549395 Mon Sep 17 00:00:00 2001 From: ptt Date: Sat, 16 Mar 2002 13:38:36 +0000 Subject: *** empty log message *** git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@29 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/talk.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/talk.c b/mbbsd/talk.c index a00b49ef..8516a5a9 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -1,4 +1,4 @@ -/* $Id: talk.c,v 1.11 2002/03/16 13:18:59 ptt Exp $ */ +/* $Id: talk.c,v 1.12 2002/03/16 13:38:36 ptt Exp $ */ #include #include #include @@ -747,11 +747,13 @@ void t_display_new(void) clrtoeol(); for (i = 0; i<6 ; i++){ if(i>0) + if(swater[i-1]) prints("%s%-13.13s\033[m", - !swater[i-1]->uin?"\033[1;33;45mX": + !swater[i-1]->uin?"\033[1;33;45mX": swater[i-1]==water_which?"\033[1;33;47m ": - "", - swater[i-1] ? swater[i-1]->userid:""); + " ",swater[i-1]->userid); + else + prints(" "); else prints("%s ¥þ³¡ \033[m", water_which==&water[0]?"\033[1;33;47m ": -- cgit v1.2.3