i foudn that when trying to load data from an ini that all control codes are stripper from the start of the line. is it intentional? i fixed it by adding a normal charactor to the start of the line and using $right(readini_code,-1) .. a little work around for now.. but it'd be nice for it to work correctly.
mIRC has never saved control codes to ini files. A better way of saving information like that is storing it in a hash table and having the table load when mIRC starts and saved when mIRC is closing.
Doing this alone is risky. You should save the table everytime there's a change, or at least more frequently than just saving it in the end. That's because in case mIRC closes with an error, the ON EXIT event won't be triggered.