From 7802939bb0b685c171e3b03cfdc0737f09dd9f99 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Thu, 9 Oct 2014 20:50:02 +0100 Subject: [PATCH] fix IRC node (once again) refactoring created incorrect object references - which weren't picked up. (sorry) - Addresses Issue 439 --- nodes/core/social/91-irc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/core/social/91-irc.js b/nodes/core/social/91-irc.js index c520e44f2..81d967bc0 100644 --- a/nodes/core/social/91-irc.js +++ b/nodes/core/social/91-irc.js @@ -65,14 +65,14 @@ module.exports = function(RED) { node.recon = setInterval( function() { //console.log("CHK ",(Date.now()-node.serverConfig.lastseen)/1000); if ((Date.now()-node.serverConfig.lastseen) > 300000) { // if more than 5 mins since last seen - node.ircclient.send.apply(node.ircclient,["TIME"]); // request time to check link + node.serverConfig.ircclient.send.apply(node.serverConfig.ircclient,["TIME"]); // request time to check link } if ((Date.now()-node.serverConfig.lastseen) > 400000) { // If more than 6.5 mins node.serverConfig.ircclient.disconnect(); node.serverConfig.ircclient.connect(); node.log("reconnect"); // then retry } - node.ircclient.send.apply(node.ircclient,["TIME"]); // request time to check link + node.serverConfig.ircclient.send.apply(node.serverConfig.ircclient,["TIME"]); // request time to check link }, 60000); // check every 1 min } else { node.status({text:""}); }