diff --git a/index.js b/index.js index 647d7f0..26d42e5 100644 --- a/index.js +++ b/index.js @@ -445,7 +445,7 @@ xmpp.on("stanza", (stanza) => { // Stops spam from getting old messages if (startup) return; // Get channel name - fromChannel = stanza.attrs.from.split("@")[0]; + const fromChannel = stanza.attrs.from.split("@")[0]; // Ignores if (!stanza.getChild("x")) return; // No PID, ignore it if (!stanza.getChild("x").attrs.product_id) return;