You might want to take a look at the code I used in this snippet as it uses the chanfolder section of mIRC.ini