summaryrefslogtreecommitdiffstats
path: root/mbbsd/io.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-14 16:17:45 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-14 16:17:45 +0800
commitc0eff88a89de7c10ccfc23416098476e2d20a0c3 (patch)
tree595545b6d88f2e881b0126be81cea76817ff6568 /mbbsd/io.c
parentad3f9d651a4edbabb59674fd4f79e00ad9156f3d (diff)
downloadpttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar.gz
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar.bz2
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar.lz
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar.xz
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.tar.zst
pttbbs-c0eff88a89de7c10ccfc23416098476e2d20a0c3.zip
ofo_water update
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@23 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/io.c')
-rw-r--r--mbbsd/io.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 1f13ffeb..c0e796df 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.2 2002/03/09 10:34:58 in2 Exp $ */
+/* $Id: io.c,v 1.3 2002/03/14 08:17:45 in2 Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -124,10 +124,20 @@ int num_in_buf() {
}
int watermode = -1;
-/* Ptt 水球回顧用的參數 */
-/* watermode = -1 沒在回水球
- = 0 在回上一顆水球 (Ctrl-R)
- > 0 在回前 n 顆水球 (Ctrl-R Ctrl-R) */
+/*
+ WATERMODE(WATER_ORIG) | WATERMODE(WATER_NEW):
+ Ptt 水球回顧用的參數
+ watermode = -1 沒在回水球
+ = 0 在回上一顆水球 (Ctrl-R)
+ > 0 在回前 n 顆水球 (Ctrl-R Ctrl-R)
+
+ WATERMODE(WATER_OFO) by in2
+ watermode = -1 沒在回水球
+ = 0 正在回水球
+ = 1 回水球間又接到水球
+ watermode >=0 時收到水球將只顯示, 不會到water[]裡,
+ 待回完水球的時候一次寫入.
+*/
/*
dogetch() is not reentrant-safe. SIGUSR[12] might happen at any time,
@@ -256,7 +266,7 @@ int igetch() {
/* 如果正在talk的話先不處理對方送過來的封包 (不去select) */
my_newfd = i_newfd;
i_newfd = 0;
- show_last_call_in(0);
+ show_call_in(0, 0);
watermode = 0;
my_write(currutmp->msgs[0].pid, "水球丟過去 : ",
currutmp->msgs[0].userid, 0, NULL);