summaryrefslogtreecommitdiff
path: root/LinBPQ.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2024-12-03 00:27:57 +0000
committerDave Hibberd <hibby@debian.org>2024-12-03 00:27:57 +0000
commit96c573931d40b6b191614c96299d66ca6217d1d8 (patch)
treef5673406ce7bf25a975179a903f2ca661bcba7b7 /LinBPQ.c
parent697fde312336b04129289ed268043e641ef284cb (diff)
New upstream version 6.0.24.53+repackupstream/6.0.24.53+repack
Diffstat (limited to 'LinBPQ.c')
-rw-r--r--LinBPQ.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/LinBPQ.c b/LinBPQ.c
index eba6b31..d25dfb7 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;
@@ -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