add debug flag
This commit is contained in:
parent
3f9b882cf7
commit
2d80073a56
1
index.js
1
index.js
|
@ -90,6 +90,7 @@ xmpp.on("offline", () => {
|
||||||
|
|
||||||
|
|
||||||
xmpp.on("stanza", (stanza) => {
|
xmpp.on("stanza", (stanza) => {
|
||||||
|
if(config.debug) console.log(stanza.toString());
|
||||||
// Stops spam from getting old messages
|
// Stops spam from getting old messages
|
||||||
if (startup) return;
|
if (startup) return;
|
||||||
// Get new messages and log them, ignore old messages
|
// Get new messages and log them, ignore old messages
|
||||||
|
|
Loading…
Reference in a new issue