added support for RichText input and conversion to mirc format