Skip to content
Snippets Groups Projects
Commit e6a3245f authored by rswindell's avatar rswindell
Browse files

Added console bit to disable user inactivity detection.

parent 906bad6d
No related branches found
No related tags found
No related merge requests found
......@@ -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]); }
......
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment