pidgin: 4bafceae: When setting an AIM or ICQ away message,...
markdoliner at pidgin.im
markdoliner at pidgin.im
Tue Mar 3 15:45:32 EST 2009
-----------------------------------------------------------------
Revision: 4bafceae646d5174972081f2bc968d2c85ed9731
Ancestor: bbb4b7cb99a0d6664073546eeabe2264dc9001d1
Author: markdoliner at pidgin.im
Date: 2009-03-03T20:41:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4bafceae646d5174972081f2bc968d2c85ed9731
Modified files:
libpurple/protocols/oscar/oscar.c
ChangeLog:
When setting an AIM or ICQ away message, linkify the message.
I didn't even realize we weren't doing this.
-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/oscar.c 9f6fac7c7e1256f7f989ff1cb1f9f9b948d7521d
+++ libpurple/protocols/oscar/oscar.c 827de715a0339b484c13a15eb8198dd021141d93
@@ -4812,6 +4812,7 @@ oscar_set_info_and_status(PurpleAccount
}
else
{
+ gchar *linkified;
htmlaway = purple_status_get_attr_string(status, "message");
if ((htmlaway == NULL) || (*htmlaway == '\0'))
@@ -4835,9 +4836,10 @@ oscar_set_info_and_status(PurpleAccount
}
/* Set a proper away message for icq too so that they work for old third party clients */
+ linkified = purple_markup_linkify(htmlaway);
+ away = purple_prpl_oscar_convert_to_infotext(linkified, &awaylen, &away_encoding);
+ g_free(linkified);
- away = purple_prpl_oscar_convert_to_infotext(htmlaway, &awaylen, &away_encoding);
-
if (awaylen > od->rights.maxawaymsglen)
{
gchar *errstr;
More information about the Commits
mailing list