summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-20 21:48:56 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-20 21:48:56 +0800
commit5797f01f9d6748cdabba8aa123d369d8e4d9a6e2 (patch)
tree0a882240d2202279509af9022d6be400f2d2ef01 /mbbsd
parent9ea9595026500cf39a6e090ba026054a2c2b013d (diff)
downloadpttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar.gz
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar.bz2
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar.lz
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar.xz
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.tar.zst
pttbbs-5797f01f9d6748cdabba8aa123d369d8e4d9a6e2.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@56 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/talk.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 6f1648f9..40ad9347 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.16 2002/03/20 05:23:19 in2 Exp $ */
+/* $Id: talk.c,v 1.17 2002/03/20 13:48:56 ptt Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -502,7 +502,7 @@ void my_write2(void)
else{
if( swater[i]->uin &&
(swater[i]->pid != swater[i]->uin->pid ||
- strcmp(swater[i]->userid, swater[i]->uin->userid)) )
+ swater[i]->userid[0]!=swater[i]->uin->userid[0]) )
swater[i]->uin = (userinfo_t*)search_ulist_pid(swater[i]->pid);
water_scr(swater[i], i, 0);
}
@@ -747,9 +747,11 @@ void t_display_new(void)
if(i>0)
if(swater[i-1])
{
- if(swater[i-1]->uin &&
- swater[i-1]->uin->pid!=swater[i-1]->pid)
- swater[i-1]->uin=NULL;
+
+ if( swater[i-1]->uin &&
+ (swater[i-1]->pid != swater[i-1]->uin->pid ||
+ swater[i-1]->userid[0]!=swater[i-1]->uin->userid[0]) )
+ swater[i-1]->uin = (userinfo_t*)search_ulist_pid(swater[i-1]->pid);
prints("%s%c%-13.13s\033[m",
swater[i-1]!=water_which? "" :
swater[i-1]->uin?"\033[1;33;47m":