$calc(0-2^2) == -4

Unary - is higher than exponent in a lot of programming languages, doesn't seem that strange that mIRC chooses to follow that...