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 :)
Mar
2008
10:48
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. :)
Mar
2008
22:31
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.
Apr
2008
09:16
Have you tried to add the -ircnet switch to your connect statement ? I’m running two connects to the same znc without any problems.
Apr
2008
10:43
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…
Dec
2008
18:03
duck said I should comment.. znc is in ports now =)
cheers
Jan
2009
22:44
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
Apr
2009
10:36
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″; };