Tried it on 2 diff mIRC & got the same error. You can also do this with just 1 while loop (basing it from your example).