From 32706ff92c3d7b357377bdefa21c92bf9eacfc26 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sun, 31 Jan 2016 23:28:05 +0000 Subject: [PATCH] set xmpp presence offline on close --- social/xmpp/92-xmpp.js | 2 +- social/xmpp/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/social/xmpp/92-xmpp.js b/social/xmpp/92-xmpp.js index 7281e6fc..51646cfa 100644 --- a/social/xmpp/92-xmpp.js +++ b/social/xmpp/92-xmpp.js @@ -125,7 +125,7 @@ module.exports = function(RED) { } node.on("close", function(done) { - //xmpp.setPresence('offline'); + xmpp.setPresence('offline'); xmpp.disconnect(); if (xmpp.conn) { xmpp.conn.end(); } xmpp = null; diff --git a/social/xmpp/package.json b/social/xmpp/package.json index c363949f..fe50bdb5 100644 --- a/social/xmpp/package.json +++ b/social/xmpp/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-xmpp", - "version" : "0.1.2", + "version" : "0.1.3", "description" : "A Node-RED node to talk to an XMPP server", "dependencies" : { "simple-xmpp" : "1.3.*"