From e6a3245fafa2a11f6c6bae5c096d9ed9cd5bdce9 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 22 Jun 2001 02:24:12 +0000 Subject: [PATCH] Added console bit to disable user inactivity detection. --- src/sbbs3/getkey.cpp | 4 ++-- src/sbbs3/sbbsdefs.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbbs3/getkey.cpp b/src/sbbs3/getkey.cpp index fbf7e3039e..822097df8c 100644 --- a/src/sbbs3/getkey.cpp +++ b/src/sbbs3/getkey.cpp @@ -253,9 +253,9 @@ char sbbs_t::getkey(long mode) ,((ushort)timeleft/60)+1,(timeleft/60) ? "s" : nulstr); RESTORELINE; } - if(online==ON_LOCAL && cfg.node_misc&NM_NO_INACT) + if((online==ON_LOCAL && cfg.node_misc&NM_NO_INACT) || console&CON_NO_INACT) timeout=now; - if(now-timeout>=cfg.sec_warn) { /* warning */ + else if(now-timeout>=cfg.sec_warn) { /* warning */ if(sys_status&SS_USERON) { SAVELINE; bputs(text[AreYouThere]); } diff --git a/src/sbbs3/sbbsdefs.h b/src/sbbs3/sbbsdefs.h index f9177b37f0..5a9df7afec 100644 --- a/src/sbbs3/sbbsdefs.h +++ b/src/sbbs3/sbbsdefs.h @@ -411,6 +411,7 @@ typedef enum { /* Values for xtrn_t.event */ #define CON_RAW_IN (1<<8) /* Raw input mode - no editing capabilities */ #define CON_ECHO_OFF (1<<10)/* Remote & Local echo disabled for ML/MF */ #define CON_UPARROW (1<<11)/* Up arrow hit - move up one line */ +#define CON_NO_INACT (1<<13)/* Console inactivity detection disabled */ /* Number of milliseconds */ #define DELAY_HANGUP 250 /* Delay before modem drops carrier */ -- GitLab