IRCNow

This is an old revision of the document!


In ~/.irssi/config, inside servers, add this block:

servers = (
  {
    address = "bnc1.ircnow.org";
    chatnet = "yournetwork";
    port = "6697";
    password = "username/yournetwork:password";
    use_tls = "yes";
    tls_verify = "yes";
    tls_cafile = "~/.irssi/certs/CAs.pem";
    autoconnect = "yes";
  },
)

Suppose you want to connect to freenode. Here is what that block would look like:

servers = (
  {
    address = "bnc1.ircnow.org";
    chatnet = "freenode";
    port = "6697";
    password = "username/freenode:password";
    use_tls = "yes";
    tls_verify = "yes";
    tls_cafile = "~/.irssi/certs/CAs.pem";
    autoconnect = "yes";
  },
)

Notice that the address should still be bnc1.ircnow.org, because you want to connect first to the bouncer, then have the bouncer connect to freenode.

If you have issues with SSL verification, make sure you have CAs.pem located in the right folder. On OpenBSD 6.6, you would do this:

$ mkdir -p ~/.irssi/certs
$ cp /etc/ssl/cert.pem ~/.irssi/certs/CAs.pem

To connect to multiple networks, add more blocks:

servers = (
  {
    address = "bnc1.ircnow.org";
    chatnet = "freenode";
    port = "6697";
    password = "username/freenode:password";
    use_tls = "yes";
    tls_verify = "yes";
    tls_cafile = "~/.irssi/certs/CAs.pem";
    autoconnect = "yes";
  },
  {
    address = "bnc1.ircnow.org";
    chatnet = "ircnow";
    port = "6697";
    password = "username/ircnow:password";
    use_tls = "yes";
    tls_verify = "yes";
    tls_cafile = "~/.irssi/certs/CAs.pem";
    autoconnect = "yes";
  },
  {
    address = "bnc1.ircnow.org";
    chatnet = "oftc";
    port = "6697";
    password = "username/oftc:password";
    use_tls = "yes";
    tls_verify = "yes";
    tls_cafile = "~/.irssi/certs/CAs.pem";
    autoconnect = "yes";
  },
)

You will want to add the networks also in the znc webpanel. Please see the instructions for how to do that.