From c6130a67da0529fe18337176d21075a5f24bd775 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 13 Jan 2014 11:01:04 +0000 Subject: [PATCH] Nodes must not require(settings) themselves (again) --- social/xmpp/92-xmpp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social/xmpp/92-xmpp.js b/social/xmpp/92-xmpp.js index 5c250b41..f7755bc3 100644 --- a/social/xmpp/92-xmpp.js +++ b/social/xmpp/92-xmpp.js @@ -27,7 +27,7 @@ var xmpp = require('simple-xmpp'); console.warn = orig; try { - var xmppkey = require(process.env.NODE_RED_HOME+"/settings").xmpp || require(process.env.NODE_RED_HOME+"/../xmppkeys.js"); + var xmppkey = RED.settings.xmpp || require(process.env.NODE_RED_HOME+"/../xmppkeys.js"); } catch(err) { throw new Error("Failed to load XMPP credentials"); }