I don't currently have mIRC installed so I can't check if this is right, but it may have something to do with mIRC storing a list of all matches in the same matchlist for the current scope.

If this is the case, using $regml($regml(0)) in place of $regml(1) should fix the problem.