From 2d80073a569e20127a8cc7054d659d336c562c2b Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 8 May 2024 00:25:57 -0600 Subject: [PATCH] add debug flag --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 555d204..bbce650 100644 --- a/index.js +++ b/index.js @@ -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