summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-15 16:55:30 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-05-15 16:55:30 +0800
commitbd1709e7222362c7b7fae0950326d21748216d62 (patch)
treea7ee6019346a97c0e323ddf32c4c22a590ac6c3c /mbbsd
parent140d78119ac42f72a590947d5c5a992047af44a7 (diff)
downloadpttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar.gz
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar.bz2
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar.lz
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar.xz
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.tar.zst
pttbbs-bd1709e7222362c7b7fae0950326d21748216d62.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@173 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/io.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/mbbsd/io.c b/mbbsd/io.c
index 8e7cd7ae..f553db74 100644
--- a/mbbsd/io.c
+++ b/mbbsd/io.c
@@ -1,4 +1,4 @@
-/* $Id: io.c,v 1.15 2002/05/14 17:13:45 ptt Exp $ */
+/* $Id: io.c,v 1.16 2002/05/15 08:55:30 ptt Exp $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -126,7 +126,7 @@ int watermode = -1, wmofo = -1;
static int dogetch() {
int len;
- static time_t lastact, realact=0;
+ static time_t lastact;
if(ibufsize <= icurrchar) {
if(flushf)
@@ -175,13 +175,8 @@ static int dogetch() {
if(currutmp)
{
now= time(0);
- if(!realact || now-lastact < 3)
- realact=now;
-
- if(now-realact<5*60)
+ if(now-lastact < 3)
currutmp->lastact=now;
- else
- currutmp->lastact=realact;
lastact=now;
}
return inbuf[icurrchar++];