jamesoff.net




21
Feb
2008
7

irssi and ZNC

ZNC is an IRC bouncer with some pretty nice features. For a number of reasons I wanted to move my ircing from home to a shell, so I decided to give ZNC a try. ZNC isn’t in ports, but compiles fine using gmake.

The only problem I encountered was getting it set up to work with multiple networks in irssi. Configuring ZNC itself to put me on many networks was easy enough, and when I connected irssi to it for each network using /connect it worked fine. Using /server add to set up irssi’s server list didn’t work out so well.

Every time I tried to add another server (for connecting to another network), irssi would remove the first one. This is because irssi only considers a server’s hostname and port when trying to work out if it’s unique. When I added another server which differed from the first only by password and associated network, irssi assumed I was updating the existing one and changed it. Putting the required entries in irssi’s config by hand also didn’t work.

The solution was easy enough; one ZNC instance can listen on multiple ports, so I got it to listen on a selection of ports using multiple Listen directives in its config file, and then added each network’s server to irssi using a different port number.

Now I can take advantage of cool things like buffer replay and detaching from channels. Sorry, irssi-proxy - you don’t quite cut it now :)


Permalink | Posted in FreeBSD internets and tagged  

7 comments on “irssi and ZNC”

  1. Posted by someone (Permalink)

    hey, why do u start multiple instances of znc? you can create more than one user on one znc… just try it. enabling the webinterface makes things so much easier. :)


  2. Posted by jamesoff (Permalink)

    I am only running one ZNC, but I need it to listen on multiple ports else irssi can’t tell the difference between my networks. So I just have one ZNC listening on a couple of ports, and each network in irssi is configured with a different port number.


  3. Posted by d0h (Permalink)

    Have you tried to add the -ircnet switch to your connect statement ? I’m running two connects to the same znc without any problems.


  4. Posted by jamesoff (Permalink)

    I did yes, and it didn’t seem to help. Are you using -ircnet instead of -network because you’re using an old irssi or because you’re used to old irssi? :) Maybe older irssis don’t try to be so clever with the server list…


  5. Posted by phisher1 (Permalink)

    duck said I should comment.. znc is in ports now =)

    cheers


  6. Posted by llutz (Permalink)

    even with 2 “Listen” statements and 2 configured users, i’m always connected to the same “user1″-account. can you plz show your anonymized znc.conf / irssi.conf? tia, llutz


  7. Posted by chicken (Permalink)

    llutz: I had the same issue. For me these entries in irssi config file in the chatnets section did the trick: znc1 = { type = “IRC”; username = “username1″; }; znc2 = { type = “IRC”; username = “username2″; };



Add a comment