From 99df1272189dc0277292f15972bb5f2462d4afd4 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 7 Nov 2003 03:59:22 +0000 Subject: [PATCH] Created TG mode flag to disable checking of time left online. --- src/sbbs3/sbbsdefs.h | 18 +++++++++--------- src/sbbs3/telgate.cpp | 3 ++- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/sbbs3/sbbsdefs.h b/src/sbbs3/sbbsdefs.h index 1529281a37..190124fa4f 100644 --- a/src/sbbs3/sbbsdefs.h +++ b/src/sbbs3/sbbsdefs.h @@ -752,15 +752,15 @@ enum { /* readmail and delmailidx which types */ #define EX_WILDCARD 0 #endif -#define OS2_POPEN (1<<0) /* Leave COM port open */ - -#define TG_ECHO (1<<0) /* Turn on telnet echo */ -#define TG_CRLF (1<<1) /* Expand sole CR to CRLF */ -#define TG_LINEMODE (1<<2) /* Send entire lines only */ -#define TG_NODESYNC (1<<3) /* Call Nodesync, get msgs, etc. */ -#define TG_CTRLKEYS (1<<4) /* Interpret ^P ^U ^T, etc locally */ -#define TG_PASSTHRU (1<<5) /* Pass-through telnet commands/responses */ -#define TG_RLOGIN (1<<6) /* Use BSD RLogin protocol */ + /* telnet_gate() mode bits */ +#define TG_ECHO (1<<0) /* Turn on telnet echo */ +#define TG_CRLF (1<<1) /* Expand sole CR to CRLF */ +#define TG_LINEMODE (1<<2) /* Send entire lines only */ +#define TG_NODESYNC (1<<3) /* Call Nodesync, get msgs, etc. */ +#define TG_CTRLKEYS (1<<4) /* Interpret ^P ^U ^T, etc locally */ +#define TG_PASSTHRU (1<<5) /* Pass-through telnet commands/responses */ +#define TG_RLOGIN (1<<6) /* Use BSD RLogin protocol */ +#define TG_NOCHKTIME (1<<7) /* Don't check time left while gated */ enum { /* Values for 'mode' in listfileinfo */ FI_INFO /* Just list file information */ diff --git a/src/sbbs3/telgate.cpp b/src/sbbs3/telgate.cpp index ad743511ce..faa73f5616 100644 --- a/src/sbbs3/telgate.cpp +++ b/src/sbbs3/telgate.cpp @@ -139,7 +139,8 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode) telnet_mode&=~TELNET_MODE_BIN_RX; while(online) { - gettimeleft(); + if(!(mode&TG_NOCHKTIME)) + gettimeleft(); rd=RingBufRead(&inbuf,buf,sizeof(buf)); if(rd) { if(!(telnet_mode&TELNET_MODE_BIN_RX)) { -- GitLab