summaryrefslogtreecommitdiff
path: root/BBSUtilities.c
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2023-08-12 20:50:35 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2023-08-12 20:50:35 +0100
commit0bdcbb4a69907185a9d625abfcee2c560ef2406d (patch)
tree5b05507bc0876c8af9749c5ba1ff0a690fb8b62f /BBSUtilities.c
parent55dc284c37ee07f053c29c4cc7687c74341c5e49 (diff)
6.0.24.124.2
Diffstat (limited to 'BBSUtilities.c')
-rw-r--r--BBSUtilities.c14
1 files changed, 10 insertions, 4 deletions
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",