diff src/protocols/oscar/im.c @ 4650:4938d12f6d48

[gaim-migrate @ 4961] This is mostly just me cleaning up some of my mess. The one important change is... I set what is believed to be the UTF8 capability flag for ICQ. I'm hoping this will tell ICQ2002 and more recent that we are able to accept UTF8 messages. Please test this and let us know what happens. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 05 Mar 2003 05:10:47 +0000
parents 858979ab3867
children 6d8a3e81db48
line wrap: on
line diff
--- a/src/protocols/oscar/im.c	Tue Mar 04 21:38:05 2003 +0000
+++ b/src/protocols/oscar/im.c	Wed Mar 05 05:10:47 2003 +0000
@@ -711,7 +711,8 @@
 /*		aim_addtlvtochain_raw(&subtl, 0x000e, 2, "en");
 		aim_addtlvtochain_raw(&subtl, 0x000d, 8, "us-ascii");
 		aim_addtlvtochain_raw(&subtl, 0x000c, 24, "Please accept this file."); */
-		aim_addtlvtochain_raw(&subtl, 0x0003, 4, ip);
+		if (ip[0])
+			aim_addtlvtochain_raw(&subtl, 0x0003, 4, ip);
 		aim_addtlvtochain16(&subtl, 0x0005, port);
 
 		/* TLV t(2711) */