diff options
| author | Dave Hibberd <hibby@debian.org> | 2024-12-16 17:54:16 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2024-12-16 17:54:16 +0000 |
| commit | a7d635fe2f04abcc3683f680f6a05ff9b11bf3aa (patch) | |
| tree | 898cca0ff2fe5fe2cdee6e6ed6bf72f23cae463a /LinBPQ.c | |
| parent | 93a10a982d3fcab0c469e2805b2034bba4e59a55 (diff) | |
New upstream version 6.0.24.54+repackupstream/6.0.24.54+repack
Diffstat (limited to 'LinBPQ.c')
| -rw-r--r-- | LinBPQ.c | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -76,6 +76,7 @@ void SaveAIS(); void initAIS();
void DRATSPoll();
VOID GetPGConfig();
+void SendBBSDataToPktMap();
extern uint64_t timeLoadedMS;
@@ -666,7 +667,7 @@ void ConTermPoll() // Replace CR with CRLF
- printf(ptr);
+ printf("%s", ptr);
if (ptr2)
printf("\r\n");
@@ -716,7 +717,7 @@ void ConTermPoll() }
-#include "getopt.h"
+#include <getopt.h>
static struct option long_options[] =
{
@@ -815,7 +816,7 @@ int main(int argc, char * argv[]) {
case 'h':
- printf(HelpScreen);
+ printf("%s", HelpScreen);
exit (0);
case 'l':
@@ -1281,6 +1282,10 @@ int main(int argc, char * argv[]) printf("Mail Started\n");
Logprintf(LOG_BBS, NULL, '!', "Mail Starting");
+ APIClock = 0;
+
+ SendBBSDataToPktMap();
+
}
}
@@ -1579,6 +1584,13 @@ int main(int argc, char * argv[]) DoHouseKeeping(FALSE);
}
+ if (APIClock < NOW)
+ {
+ SendBBSDataToPktMap();
+ APIClock = NOW + 7200; // Every 2 hours
+ }
+
+
tm = gmtime(&NOW);
if (tm->tm_wday == 0) // Sunday
|
