Did you paste this whole script in one file and is the mIRC of yours clean (having only this script)? Plus, what's the version of your mIRC.