From 0bdcbb4a69907185a9d625abfcee2c560ef2406d Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Sat, 12 Aug 2023 20:50:35 +0100 Subject: 6.0.24.1 --- BBSUtilities.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'BBSUtilities.c') diff --git a/BBSUtilities.c b/BBSUtilities.c index 1d82b8c..413a121 100644 --- a/BBSUtilities.c +++ b/BBSUtilities.c @@ -8061,6 +8061,14 @@ BOOL ProcessBBSConnectScript(CIRCUIT * conn, char * Buffer, int len) now %= 86400; Line = Scripts[n]; + // Skip comments + + while (Line && ((strcmp(Line, " ") == 0 || Line[0] == ';' || Line[0] == '#'))) + { + n++; + Line = Scripts[n]; + } + if (_memicmp(Line, "TIMES", 5) == 0) { NextBand: @@ -11871,7 +11879,7 @@ void run_pg( CIRCUIT * conn, struct UserInfo * user ) PROCESS_INFORMATION piProcInfo; STARTUPINFO siStartInfo; BOOL bSuccess = FALSE; - DWORD dwRead, dwWritten; + DWORD dwRead; CHAR chBuf[BUFSIZE]; int index = 0; int ret = 0; @@ -14527,7 +14535,7 @@ void ProcessSyncModeMessage(CIRCUIT * conn, struct UserInfo * user, char* Buffer char * BIDptr; BIDRec * BID; - char *ptr1, *ptr2, *context; + char *ptr2, *context; // TR AddMessage_1145_G8BPQ 727 1202 440 True @@ -14763,8 +14771,6 @@ void SendRequestSync(CIRCUIT * conn) char MsgTime[32]; time_t Time = time(NULL); - char * Encoded; - tm = gmtime(&Time); sprintf_s(Date, sizeof(Date), "%04d%02d%02d%02d%02d%02d", -- cgit v1.2.3