This is an addition to my “Adding and running Irssi perl scripts. [Nicklist.pl]” post so please read it before following this HOWTO.
Ok… I love Irssi. Its my favorite IRC client BUT it has at least two major annoyances IMHO. First one is the lack of the users list which I solved by using the “Nicklist.pl” script.
Second is the way that URLs are handled. Irssi is indenting the text so the conversations are very easy to read and they look great BUT it breaks the links. <<< Read EDIT1. If You are a Irssi user and You use nicklist script You will know what I mean. It looks like only a part of link is active. How to fix the long links issue? Shorten the links. How? By using ShortenURL.pl script. How? Let me show You ;).
Close Irssi and run (copy & paste) this command:
rm -f ~/.irssi/scripts/shortenurl.pl && rm -f ~/.irssi/scripts/autorun/shortenurl.pl && mkdir -p ~/.irssi/scripts/autorun && cd ~/.irssi/scripts/ && wget -c http://andrzejl.cyryl.net/WoTW/WoTW_files/shortenurl.txt && mv ~/.irssi/scripts/shortenurl.txt ~/.irssi/scripts/shortenurl.pl && cd ~/.irssi/scripts/autorun/ && ln -s ../shortenurl.pl
Now run this command (it’s a shortenurl.pl specific command – find out more by reading the script itself) in irssi:
/set shortenurl_autoconvert_minlen 10
Final step: Close irssi. Start screen session. And re-run irssi. Join any channel of Your choice 🙂 and wait for someone to post one of those long links again :).
Thanks to the script author and to TerryN!
Hope this helps somebody someday.
EDIT: I just checked and it’s the nicklist.pl not the Irssi’s indentation that breaks the links. Sorry. My bad. If You don’t use the nicklist perl script Your URLs will not break. However I like my users list to much to get rid of the script plus the shortenurl script really does takes care of the issue.