Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto-join all currently open channels in Irssi

Tags:

irc

irssi

Is there a way to tell Irssi that I want to auto-join all of the channels that are currently open?

I want something like:

/channel add -auto <all my currently open channels>
/save
like image 661
earldouglas Avatar asked Feb 25 '15 17:02

earldouglas


People also ask

How do I close my Irssi account?

Irssi has many default aliases that aid in controlling your IRC client more quickly and easily. You can see them using /alias and looking at your status window. Remember that Alt-1 switches to your status window. Once you've finished typing in your query, type /q in the window to close it.


1 Answers

Irssi has had an /ADDALLCHANS alias since at least July 2014 that does exactly what you want: add all currently joined channels to the auto-join list.

Specifically, the alias is defined as: ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";

You'll still want to call /save afterwards if you want the settings to persist.

like image 119
sizzle beam Avatar answered Sep 22 '22 23:09

sizzle beam