When you've posted a code on the forum, you'll notice there's an added space as shown:Then when you've copied, pasted and saved the code in mIRC remote, it becomes like this:As you can see those circles I marked in red. There should be no space between line 6 and the closing curly bracket. Once saved with the space in mIRC remote, the code may cause an error and become unworkable.
Good catch. I've corrected it.