There are a few trojans which carry a copy of mIRC as part of their payload, causing what you describe. check out this
thread and its links. Be sure to note that in some cases, you will need to do some manual editing in the registry. I would suggest running a scan at the free online scanner that is one of the links in that thread as it tends to catch some IRC type trojans other may not.