hi,

imho $chr(0) causes the problem as it's not a real character.
so, this is not a bug but mIRC's normal behaviour.
just set %i to 1 and you should do fine.

sincerly,
CNO