summaryrefslogtreecommitdiff
path: root/LinBPQ.c
diff options
context:
space:
mode:
Diffstat (limited to 'LinBPQ.c')
-rw-r--r--LinBPQ.c18
1 files changed, 15 insertions, 3 deletions
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 <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