diff src/protocols/oscar/im.c @ 9933:cee849d17167

[gaim-migrate @ 10825] Another patch from Dave West. This makes the file transfer message show up when someone sends you an AIM file transfer. It also attempts to decode the message to UTF-8. The chat invitation messages also benefit from this attempted conversion. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 02 Sep 2004 03:46:53 +0000
parents 6f2a90c36ee2
children 4e7fe18a36b7
line wrap: on
line diff
--- a/src/protocols/oscar/im.c	Thu Sep 02 02:49:00 2004 +0000
+++ b/src/protocols/oscar/im.c	Thu Sep 02 03:46:53 2004 +0000
@@ -1828,8 +1828,10 @@
 	/*
 	 * Invitation message / chat description.
 	 */
-	if (aim_tlv_gettlv(list2, 0x000c, 1))
+	if (aim_tlv_gettlv(list2, 0x000c, 1)) {
 		args.msg = aim_tlv_getstr(list2, 0x000c, 1);
+		args.msglen = aim_tlv_getlength(list2, 0x000c, 1);
+	}
 
 	/*
 	 * Character set.