diff options
Diffstat (limited to 'BBSUtilities.c')
| -rw-r--r-- | BBSUtilities.c | 14 |
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",
|
