Thanks, your script works great!
I only had some problems with a contact using Adium. All the messages I received were in the following format:
code:
<FONT FACE="Lucida Grande">lorem ipsum</FONT>
I made a
very quick and dirty solution for this in your script:
code:
var plain = aes_cipher.decrypt(data_str, this.receivingAESKey, counter_hi);
//////
if (plain.match("^<FONT") == "<FONT")
{
plain = plain.substr(27);
plain = plain.replace("</FONT>", "");
}
//////
return this.theirDSA.trusted() ? OTR_Tag + plain : OTR_Tag_Untrusted + plain;
When this contact changes the font it doesn't work (unless you edit the substring) so a better solution is needed.