changeset 25452:8134074c05a3

When setting an AIM or ICQ away message, linkify the message. I didn't even realize we weren't doing this.
author Mark Doliner <mark@kingant.net>
date Tue, 03 Mar 2009 20:41:05 +0000
parents 9d931c8e9d90
children 09f4d4bca9b3
files libpurple/protocols/oscar/oscar.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c	Tue Mar 03 20:29:11 2009 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Tue Mar 03 20:41:05 2009 +0000
@@ -4812,6 +4812,7 @@
 	}
 	else
 	{
+		gchar *linkified;
 
 		htmlaway = purple_status_get_attr_string(status, "message");
 		if ((htmlaway == NULL) || (*htmlaway == '\0'))
@@ -4835,8 +4836,9 @@
 		}
 
 		/* Set a proper away message for icq too so that they work for old third party clients */
-
-		away = purple_prpl_oscar_convert_to_infotext(htmlaway, &awaylen, &away_encoding);
+		linkified = purple_markup_linkify(htmlaway);
+		away = purple_prpl_oscar_convert_to_infotext(linkified, &awaylen, &away_encoding);
+		g_free(linkified);
 
 		if (awaylen > od->rights.maxawaymsglen)
 		{