Sometimes, servers reply to JOIN #channelA
with another channel :soju@! JOIN #channelB
(e.g. ##Linux
-> #linux
or #nodejs
-> #node.js
on libera, see #149)
soju should make use of either:
labeled-response
, check the channel name in the JOIN reply and update the db if it's differentdraft/channel-rename
[0], handle FAIL CHANNEL_RENAMED
, update the channel name and join the new channelThe current workaround to part a redirected channel is to /quote PART #channelA
and then /quote PART #channelB
We should be able to handle
ERR_LINKCHANNEL
maybe?
Note, we're getting
443 mynick mynick #rust :is already on channel
errors if the user hasJOIN
ed both channels.