The problem is that the format for joining multiple channels, some of them containing keys, is like:

/join #chan1,#chan2,#chan3,#chan4 key1,key2,key3,key4

If for example chans 3 and 4 don't have keys, the format would be:

/join #chan1,#chan2,#chan3,#chan4 key1,,,key4

So what you can do is extract the channels with their keys from $readini() and rearrange them into the above format, storing the result in a %var, then call /join %var. Alternatively, you can change the way you store channels in the .ini. Token identifiers will probably help you a lot in achieving either.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com