If only mIRC bit the bullet and created some backwards incompatible syntax to support quoted strings (similar to bash/shell syntax). It would solve hundreds of existing language issues in addition to this one.
Maybe a "Support Quoted Strings" option could be added to opt-in to this parsing behavior.