This isn't a fix for the problem, but a way to add your code. While in the Remote editor, go to "File" menu > "New".
mIRC can have many script files loaded.