torstai 26. tammikuuta 2012

Saving all channels in irssi

Normally it's only possible to save channels one by one in irssi. This is quite annoying. Here's a small script to save 'em all (thanks pulk!):

/alias channelsaveall script exec foreach my \$channel (Irssi::channels()) { Irssi::command("channel add -auto \$channel->{name} \$channel->{server}->{tag} \$channel->{key}")\;}

Copy-paste that on a single line and then just /channelsaveall.

Ei kommentteja: