kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
182 stars 64 forks source link

When reconnecting an IRC web client to an IRC framework with a BNC, which of these parameters can be removed/disabled? #376

Open Madriix opened 8 months ago

Madriix commented 8 months ago

Hi

For years, I've been using a customized IRC client that connects to an IRC framework, and I use a BNC. However, during reconnection, I would like to avoid sending certain commands, such as SASL, while the /PASS command is still necessary. Do you know if there are any other commands that can be omitted to make the reconnection more efficient without overloading the IRC framework?

Here is a list of parameters that I believe can be omitted for a "reconnection" to the BNC from the IRC Framework (thus necessarily from the IRC web client):

However, for the others, I am not sure, such as:

Parameters:

new Irc.Client({
    nick: 'ircbot',
    username: 'ircbot',
    gecos: 'ircbot',
    encoding: 'utf8',
    version: 'node.js irc-framework',
    enable_chghost: false,
    enable_echomessage: false,
    auto_reconnect: true,
    auto_reconnect_max_wait: 300000,
    auto_reconnect_max_retries: 3,
    ping_interval: 30,
    ping_timeout: 120,
    sasl_disconnect_on_fail: false,
    account: {
        account: 'username',
        password: 'account_password',
    },
    webirc: {
        password: '',
        username: '*',
        hostname: 'users.host.isp.net',
        ip: '1.1.1.1',
        options: {
            secure: true,
            'local-port': 6697,
            'remote-port': 21726,
        },
    },
    client_certificate: {
        private_key: '-----BEGIN RSA PRIVATE KEY-----[...]',
        certificate: '-----BEGIN CERTIFICATE-----[...]',
    },
});

Regards