If you mean the game message function, it can be found by opening TSearch hex editor on running CO process, trigger something that cause an error message, search for that exact text in TSearch then in Olly or whatever debugger you use, go to that address and breakpoint on access and trace some
EDIT
Thanks for info about chat.dll, I don't like the chat windows too :)