I've tried the code and seems to work here, what mIRC version you have 3.21?