diff --git a/social/xmpp/92-xmpp.js b/social/xmpp/92-xmpp.js index 1dfb35a8..c0979ca8 100644 --- a/social/xmpp/92-xmpp.js +++ b/social/xmpp/92-xmpp.js @@ -101,7 +101,7 @@ module.exports = function(RED) { msg.topic = stanza.attrs.from } else { msg.topic = ids[0]; } - if (!node.join && ((node.from === "") || (node.from === from))) { + if (!node.join && ((node.from === "") || (node.from === stanza.attrs.from))) { node.send([msg,null]); } } diff --git a/social/xmpp/package.json b/social/xmpp/package.json index 37d24572..d957f7a5 100644 --- a/social/xmpp/package.json +++ b/social/xmpp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-xmpp", - "version" : "0.2.2", + "version" : "0.2.3", "description" : "A Node-RED node to talk to an XMPP server", "dependencies" : { "simple-xmpp" : "^1.3.0"