shabble / irssi-scripts

Repo to store some personal irssi scripts
151 stars 24 forks source link

make /j #foo change window to ##foo if you are already on ##foo on freenode #2

Open jasonblewis opened 13 years ago

jasonblewis commented 13 years ago

if you /j #foo on freenode, and freenode forwards you to ##foo, but you are already on ##foo, irssi drops you back into the channel window you were in to start with. this is confusing

you suggested you might write a script to fix this sometime if I reported it here.

if you do, i would be eternally grateful.

Jason

shabble commented 13 years ago

` Thu.05:50:46 <+shabble> it's sending a 470 numeric the first time (redirecting you to ...)

Thu.05:50:56 <+shabble> but I'm not sure about the actual mechanics of the forward

Thu.05:51:40 <+k-man> yeah, i noticed the 470, i think the code changed at some point from 379 or whatever is in the script

Thu.05:56:40 <+shabble> looks like it's done with +i and then +f ##foo

Thu.05:58:02 <+shabble> you ought to be able to write a script that catches event 470, logs the a -> b linkage, and subsequent 473 invite-only messages just switch you to window(item) of b instead. `

Notes form teh conversation to remind myself what/why.

richo commented 13 years ago

The functionality would need to respond to the server message rather than a check to see if you're already on ##foo. There are some channels that use #chan / ##chan for official/unofficial AFAIK.