it will have the codes. if you typed "hello" with red to green text it will be like "[c=#ff0000]hello[/c=#00ff00]" for bbcode and a lot messier for the IRC style text.
so i think you should ask your contact before making the contact into a group with the script
note: this script does not do it for all contacts
i hope this helps you...