Why not just 1 editbox with an 'Add' button to add the channel to autojoin, instead of 50 editboxes?
I also suggest you to take a look at /while, $iif, instead of all those if statements. (/help /while, /help $iif)
You might want to use $null, $isnull doesn't exist.