martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.32k stars 425 forks source link

Not connect after add parameters #555

Closed MSIKT4AV closed 4 years ago

MSIKT4AV commented 4 years ago

Hi. So... if I have:

var irc = require('irc');
var client = new irc.Client('irc.freenode.net', 'BotNickname', {
    debug: true,
    channels: ['#channel']
});

Bot will connect, but if I add parameters like:

var irc = require('irc');
var client = new irc.Client('irc.freenode.net', 'BotNickname', {
    debug: true,
    channels: ['#channel'],
       floodProtection: true,
       floodProtectionDelay: 2000
});

Bot will not start... why?