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

Created TG mode flag to disable checking of time left online.

parent 9ea41237
No related branches found
No related tags found
No related merge requests found
...@@ -752,15 +752,15 @@ enum { /* readmail and delmailidx which types */ ...@@ -752,15 +752,15 @@ enum { /* readmail and delmailidx which types */
#define EX_WILDCARD 0 #define EX_WILDCARD 0
#endif #endif
#define OS2_POPEN (1<<0) /* Leave COM port open */ /* telnet_gate() mode bits */
#define TG_ECHO (1<<0) /* Turn on telnet echo */
#define TG_ECHO (1<<0) /* Turn on telnet echo */ #define TG_CRLF (1<<1) /* Expand sole CR to CRLF */
#define TG_CRLF (1<<1) /* Expand sole CR to CRLF */ #define TG_LINEMODE (1<<2) /* Send entire lines only */
#define TG_LINEMODE (1<<2) /* Send entire lines only */ #define TG_NODESYNC (1<<3) /* Call Nodesync, get msgs, etc. */
#define TG_NODESYNC (1<<3) /* Call Nodesync, get msgs, etc. */ #define TG_CTRLKEYS (1<<4) /* Interpret ^P ^U ^T, etc locally */
#define TG_CTRLKEYS (1<<4) /* Interpret ^P ^U ^T, etc locally */ #define TG_PASSTHRU (1<<5) /* Pass-through telnet commands/responses */
#define TG_PASSTHRU (1<<5) /* Pass-through telnet commands/responses */ #define TG_RLOGIN (1<<6) /* Use BSD RLogin protocol */
#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 */ enum { /* Values for 'mode' in listfileinfo */
FI_INFO /* Just list file information */ FI_INFO /* Just list file information */
......
...@@ -139,7 +139,8 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode) ...@@ -139,7 +139,8 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode)
telnet_mode&=~TELNET_MODE_BIN_RX; telnet_mode&=~TELNET_MODE_BIN_RX;
while(online) { while(online) {
gettimeleft(); if(!(mode&TG_NOCHKTIME))
gettimeleft();
rd=RingBufRead(&inbuf,buf,sizeof(buf)); rd=RingBufRead(&inbuf,buf,sizeof(buf));
if(rd) { if(rd) {
if(!(telnet_mode&TELNET_MODE_BIN_RX)) { if(!(telnet_mode&TELNET_MODE_BIN_RX)) {
......
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