summaryrefslogtreecommitdiffstats
path: root/mbbsd/chat.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 17:23:33 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-04-20 17:23:33 +0800
commit45fd0b8bbba0062c3b815e5a09b27aec378ee3a1 (patch)
tree3790770889804c87c5ffb119bc6218ee0f2bdf18 /mbbsd/chat.c
parentcb803d875a0cdb6235b8bcdf96d7adce7f24cb3f (diff)
downloadpttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar.gz
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar.bz2
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar.lz
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar.xz
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.tar.zst
pttbbs-45fd0b8bbba0062c3b815e5a09b27aec378ee3a1.zip
- chat: fix key hit (I_OTHERDATA) when doing ZA.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4218 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/chat.c')
-rw-r--r--mbbsd/chat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mbbsd/chat.c b/mbbsd/chat.c
index 0753d8c2..eda0983e 100644
--- a/mbbsd/chat.c
+++ b/mbbsd/chat.c
@@ -305,10 +305,12 @@ _vgetcb_peek(int key, char *buf, int *picurr, int *piend, int len, void *ptr)
{
int za = 0;
VREFCUR cur = vcur_save();
+ add_io(0, 0);
za = ZA_Select();
move(b_lines, 0);
clrtoeol();
vcur_restore(cur);
+ add_io(p->cfd, 0);
if (za)
return VGETCB_ABORT;
return VGETCB_NEXT;
@@ -438,8 +440,10 @@ t_chat(void)
{
// process ZA
VREFSCR scr = vscr_save();
+ add_io(0, 0);
ZA_Enter();
vscr_restore(scr);
+ add_io(cfd, 0);
}
print_chatid(chatid); clrtobot();
move(b_lines-1, chatid_len);