Try the script in a fresh install of mIRC with no loaded scripts, dlls, etc. If it works then, then you have another script loaded that's interfering with it.