Irssi config
2010/11/26 | 09:36After the last power failure of our server I decided to work out how to make Irssi autoreconnect to the channels/servers of my choice. This was pretty easily done.
vim .irssi/config
#Here you define the servers you want to use #Chatnet is just an alias, you can write whatever here servers = ( { address = "irc.url.se"; chatnet = "SOMEALIAS"; port = "6667"; password = "XXX"; use_ssl = "no"; ssl_verify = "no"; autoconnect = "yes"; } { address = "irc.url2.se"; chatnet = "SOMEOTHERALIAS"; port = "6667"; use_ssl = "no"; ssl_verify = "no"; autoconnect = "yes"; } ); chatnets = { SOMEALIAS = { type = "IRC"; }; SOMEOTHERALIAS = { type = "IRC"; }; }; channels = ( { name = "#CHANNELNAMEHERE"; chatnet = "SOMEALIAS"; autojoin = "yes"; }, { name = "#CHANNELNAMEHERE"; chatnet = "SOMEOTHERALIAS"; autojoin = "yes"; }, ); #THIS SECTIONS DEALS WITH YOUR CHANNELS. THE NUMBER IS THE WINDOW NUMBER #A CHANNEL WILL APPEAR IN. windows = { 1 = { immortal = "yes"; name = "(status)"; level = "ALL"; }; 2 = { items = ( { type = "CHANNEL"; chat_type = "IRC"; name = "#CHANNELNAMEHERE"; tag = "SOMEALIAS"; } ); }; 3 = { items = ( { type = "CHANNEL"; chat_type = "IRC"; name = "#CHANNELNAMEHERE"; tag = "SOMEOTHERALIAS"; } ); }; }; mainwindows = { 1 = { first_line = "1"; lines = "22"; }; };