diff src/protocols/oscar/service.c @ 7141:af8ac078d4c2

[gaim-migrate @ 7708] I guess I changed "everybuddy bug" to "ICQ Direct Connect" in the tooltips. And then there's some other comment changes and stuff that were in my tree. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 04 Oct 2003 20:14:25 +0000
parents e4a5085fb870
children 6d3d8f11e765
line wrap: on
line diff
--- a/src/protocols/oscar/service.c	Sat Oct 04 19:34:53 2003 +0000
+++ b/src/protocols/oscar/service.c	Sat Oct 04 20:14:25 2003 +0000
@@ -787,15 +787,15 @@
 	if (!sess || !(conn = aim_conn_findbygroup(sess, 0x0001)))
 		return -EINVAL;
 
-	if (msg) {
+	if (msg != NULL) {
 		if (!(fr = aim_tx_new(sess, conn, AIM_FRAMETYPE_FLAP, 0x02, 10 + 4 + strlen(msg) + 8)))
 			return -ENOMEM;
 
 		snacid = aim_cachesnac(sess, 0x0001, 0x001e, 0x0000, NULL, 0);
 		aim_putsnac(&fr->data, 0x0001, 0x001e, 0x0000, snacid);
 
-		aimbs_put16(&fr->data, 0x001d);
-		aimbs_put16(&fr->data, strlen(msg)+8);
+		aimbs_put16(&fr->data, 0x001d); /* userinfo TLV type */
+		aimbs_put16(&fr->data, strlen(msg)+8); /* total length of userinfo TLV data */
 		aimbs_put16(&fr->data, 0x0002);
 		aimbs_put8(&fr->data, 0x04);
 		aimbs_put8(&fr->data, strlen(msg)+4);