I think
this thread is about the same problem, it also contains
this link to another thread. Basically, if you try this with any other version of mIRC than 6.16, it will give a warning and stop recursion. This protection seems broken in v6.16 though, let's hope it will be back in the next mIRC release...