You obviously don't fully understand every single line in your scripts or you wouldn't be here with this problem.
Again, as mentioned, your a) stubbornness to not properly debug your script, b) refusal to try this in a clean mirc and c) unwillingness to actually show your script makes this a completely pointless 2 page conversation.
Are you just here to say "mIRC is wrong I'm right!" or do you actually want a solution? If you want a solution it seems logical to me that you would actually do what is suggested. I don't see how you think claiming you're all-knowing is productive when you're the one with the problem.