From a7d635fe2f04abcc3683f680f6a05ff9b11bf3aa Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Mon, 16 Dec 2024 17:54:16 +0000 Subject: New upstream version 6.0.24.54+repack --- LinBPQ.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'LinBPQ.c') diff --git a/LinBPQ.c b/LinBPQ.c index eba6b31..0f9daab 100644 --- a/LinBPQ.c +++ b/LinBPQ.c @@ -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 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 -- cgit v1.2.3