With brackets in place, mIRC doesn't have to do as much work to figure out where the if's command structure ends. It knows it goes to the next } in the parse tree.

Without it, it's gotta nibble along until it comes to a | or an end-of-line..