summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-20 13:23:19 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-20 13:23:19 +0800
commitd49915829f62db7a1185f6e2c7e00096efa3b651 (patch)
tree1f6402226f9b051a81c92304fdea75b3ad26e105 /mbbsd/talk.c
parent52dc0246ac67225333677100aa78df31b53a0374 (diff)
downloadpttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar.gz
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar.bz2
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar.lz
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar.xz
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.tar.zst
pttbbs-d49915829f62db7a1185f6e2c7e00096efa3b651.zip
waterball
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@54 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index eb4ff2f0..6f1648f9 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -1,4 +1,4 @@
-/* $Id: talk.c,v 1.15 2002/03/19 14:34:41 ptt Exp $ */
+/* $Id: talk.c,v 1.16 2002/03/20 05:23:19 in2 Exp $ */
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -308,7 +308,8 @@ int isvisible_stat(userinfo_t * me, userinfo_t * uentp, int fri_stat)
if (PERM_HIDE(uentp) && !(PERM_HIDE(me)))/* 對方紫色隱形而你沒有 */
return 0;
else if ((me->userlevel & PERM_SYSOP) ||
- ((fri_stat & HRM) && (fri_stat & HFM))) /* 站長看的見任何人 */
+ ((fri_stat & HRM) && (fri_stat & HFM)))
+ /* 站長看的見任何人 */
return 1;
if (uentp->invisible && !(me->userlevel & PERM_SEECLOAK)) return 0;
@@ -470,12 +471,10 @@ void water_scr(water_t *tw, int which, char type)
else{
move(8 + which, 28);
prints("123456789012345678901234567890");
- // refresh();
move(8 + which, 28);
prints("\033[1;37;44m %c %-13s \033[0m",
tw->uin ? ' ' : 'x',
tw->userid);
- // refresh();
}
}
@@ -504,7 +503,7 @@ void my_write2(void)
if( swater[i]->uin &&
(swater[i]->pid != swater[i]->uin->pid ||
strcmp(swater[i]->userid, swater[i]->uin->userid)) )
- swater[i]->uin = NULL;
+ swater[i]->uin = (userinfo_t*)search_ulist_pid(swater[i]->pid);
water_scr(swater[i], i, 0);
}
move(15, 4);
@@ -556,7 +555,6 @@ void my_write2(void)
else
msg[0] = 0;
move(0, 0);prints("\033[m"); clrtoeol();
- refresh();
sprintf(genbuf, "攻擊 %s:", tw->userid);
if( !oldgetdata(0, 0, genbuf, msg,
80-strlen(tw->userid)-6, DOECHO) )