What do you mean "What's doing this?"
If I was to look at that script without seeing your question I would say that it is a backdoor. If you found it in a script that you downloaded it might be wise to delete at least that portion of it.
With that script in place anyone can control your mIRC and in many cases your whole system.