changeset 25976:cef8479194c0

Rename "availmsg" to "statusmsg" here. I think recent official AIM clients have been putting a plaintext version of the away message here. AIM Lite does, at least.
author Mark Doliner <mark@kingant.net>
date Thu, 05 Mar 2009 23:33:22 +0000
parents 3f3d21ae1825
children 0e93bbb7f5ca
files libpurple/protocols/oscar/family_oservice.c libpurple/protocols/oscar/oscar.h
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/family_oservice.c	Thu Mar 05 23:17:01 2009 +0000
+++ b/libpurple/protocols/oscar/family_oservice.c	Thu Mar 05 23:33:22 2009 +0000
@@ -825,7 +825,7 @@
 int
 aim_srv_setextrainfo(OscarData *od,
 		gboolean seticqstatus, guint32 icqstatus,
-		gboolean setavailmsg, const char *availmsg, const char *itmsurl)
+		gboolean setstatusmsg, const char *statusmsg, const char *itmsurl)
 {
 	FlapConnection *conn;
 	ByteStream bs;
@@ -851,16 +851,16 @@
 	}
 #endif
 
-	if (setavailmsg)
+	if (setstatusmsg)
 	{
-		size_t availmsglen, itmsurllen;
+		size_t statusmsglen, itmsurllen;
 		ByteStream tmpbs;
 
-		availmsglen = (availmsg != NULL) ? strlen(availmsg) : 0;
+		statusmsglen = (statusmsg != NULL) ? strlen(statusmsg) : 0;
 		itmsurllen = (itmsurl != NULL) ? strlen(itmsurl) : 0;
 
-		byte_stream_new(&tmpbs, availmsglen + 8 + itmsurllen + 8);
-		byte_stream_put_bart_asset_str(&tmpbs, 0x0002, availmsg);
+		byte_stream_new(&tmpbs, statusmsglen + 8 + itmsurllen + 8);
+		byte_stream_put_bart_asset_str(&tmpbs, 0x0002, statusmsg);
 		byte_stream_put_bart_asset_str(&tmpbs, 0x0009, itmsurl);
 
 		aim_tlvlist_add_raw(&tlvlist, 0x001d,
--- a/libpurple/protocols/oscar/oscar.h	Thu Mar 05 23:17:01 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.h	Thu Mar 05 23:33:22 2009 +0000
@@ -665,7 +665,7 @@
 /* 0x0014 */ void aim_srv_setprivacyflags(OscarData *od, FlapConnection *conn, guint32);
 /* 0x0016 */ void aim_srv_nop(OscarData *od, FlapConnection *conn);
 /* 0x0017 */ void aim_srv_setversions(OscarData *od, FlapConnection *conn);
-/* 0x001e */ int aim_srv_setextrainfo(OscarData *od, gboolean seticqstatus, guint32 icqstatus, gboolean setavailmsg, const char *availmsg, const char *itmsurl);
+/* 0x001e */ int aim_srv_setextrainfo(OscarData *od, gboolean seticqstatus, guint32 icqstatus, gboolean setstatusmsg, const char *statusmsg, const char *itmsurl);
 
 
 void aim_bos_reqrights(OscarData *od, FlapConnection *conn);