diff libpurple/protocols/oscar/tlv.c @ 29435:11cb7f2bb6e8

Add a PURPLE_STATUS_MOOD primitive and change ICQ to use it.
author Richard Laager <rlaager@wiktel.com>
date Mon, 17 Nov 2008 00:43:59 +0000
parents 365b90fa23cf
children 1fb503adb2ae
line wrap: on
line diff
--- a/libpurple/protocols/oscar/tlv.c	Sun Nov 16 19:17:27 2008 +0000
+++ b/libpurple/protocols/oscar/tlv.c	Mon Nov 17 00:43:59 2008 +0000
@@ -407,7 +407,7 @@
  * @param caps Bitfield of capability flags to send
  * @return The size of the value added.
  */
-int aim_tlvlist_add_caps(GSList **list, const guint16 type, const guint32 caps, const gint32 customicon)
+int aim_tlvlist_add_caps(GSList **list, const guint16 type, const guint32 caps, const char *mood)
 {
 	guint8 buf[256]; /* TODO: Don't use a fixed length buffer */
 	ByteStream bs;
@@ -421,10 +421,9 @@
 	byte_stream_putcaps(&bs, caps);
 	
 	/* adding of custom icon GUID */
-	data = aim_get_custom_icon_data(customicon);	
-	if (data != NULL) {
+	data = aim_get_custom_icon_data(mood);
+	if (data != NULL)
 		byte_stream_putraw(&bs, data, 16);
-	}
 
 	return aim_tlvlist_add_raw(list, type, byte_stream_curpos(&bs), buf);
 }