if you're looking for a workaround, use the tab character (ctrl+i in the editor) instead of soft spaces.
this isn't really a bug since there is no expectation that comments maintain any specific indentation formatting-- in fact, given that mIRC will already automatically indent all your other code, the opposite expectation (that mIRC *will* mess with your comments) seems far more likely.