The code seems to work.
Try use the latest mIRC version then copy/paste the code from
this post into a NEW file in the Script Editor in Remotes tab (Alt +r -> File -> New), make sure that the only code is that you have copy/paste and NOT ANY OTHER CODE INSIDE THE FILE.
If it still doesn't work then at 99% your steps are incorrect.