The wildcard routine in mIRC is greedy and performs backtracking. In the case of a non-match, it will recursively backtrack and try every possible permutation exhaustively.

The question is whether mIRC needs to perform backtracking in a wildcard on plaintext matching. I'll experiment a little to see what I can come up with.