diff --git a/social/irc/91-irc.js b/social/irc/91-irc.js index 2fb6f617..ce95650d 100644 --- a/social/irc/91-irc.js +++ b/social/irc/91-irc.js @@ -200,7 +200,7 @@ module.exports = function(RED) { if (node.serverConfig.ircclient === null) { node.log(RED._("irc.errors.connect")+": "+node.serverConfig.server); node.status({fill:"grey",shape:"dot",text:"node-red:common.status.connecting"}); - var options = {autoConnect:true,autoRejoin:false,floodProtection:true,secure:node.serverConfig.ssl,selfSigned:node.serverConfig.cert,port:node.serverConfig.port,retryDelay:20000,userName:node.username,password:node.password}; + var options = {autoConnect:true,autoRejoin:false,floodProtection:true,secure:node.serverConfig.ssl,selfSigned:node.serverConfig.cert,port:node.serverConfig.port,retryDelay:20000,userName:node.serverConfig.username,password:node.serverConfig.password}; node.serverConfig.ircclient = new irc.Client(node.serverConfig.server, node.serverConfig.nickname, options); node.serverConfig.ircclient.setMaxListeners(0); node.serverConfig.ircclient.addListener('error', function(message) {