real quickly I would try using $readini(file.ini,topic,item)
not "$readini scad.ini general joinchans" as you have it now
/help $readini
and I know it is faster to set vars, but why have an ini all set up if you are just going to use /SET global vars? If your script needs the info once while its running or rarely, then use the ini file to keep the data and dont store it in active ram by setting it as well, this would apply to using hash tables they are great for storage and fast retrieval but if you dont need the speed why have it in ram?