add debug flag

This commit is contained in:
Christopher Cookman 2024-05-08 00:25:57 -06:00
parent 3f9b882cf7
commit 2d80073a56
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -90,6 +90,7 @@ xmpp.on("offline", () => {
xmpp.on("stanza", (stanza) => {
if(config.debug) console.log(stanza.toString());
// Stops spam from getting old messages
if (startup) return;
// Get new messages and log them, ignore old messages