This should be easy to locate, yes.
Also make sure you are looking at the correct location for the settings files. If you type //echo -a $mircdir you will see the path mIRC is currently using for its settings files.

The script doing this is either triggering an on TEXT event or an on OPEN event. Just look for :TEXT: and :OPEN:. It has to be present.