Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/oscar.c @ 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 | 4d758dcd5715 |
comparison
equal
deleted
inserted
replaced
25451:9d931c8e9d90 | 25452:8134074c05a3 |
---|---|
4810 /* This is needed for us to un-set any previous away message. */ | 4810 /* This is needed for us to un-set any previous away message. */ |
4811 away = g_strdup(""); | 4811 away = g_strdup(""); |
4812 } | 4812 } |
4813 else | 4813 else |
4814 { | 4814 { |
4815 gchar *linkified; | |
4815 | 4816 |
4816 htmlaway = purple_status_get_attr_string(status, "message"); | 4817 htmlaway = purple_status_get_attr_string(status, "message"); |
4817 if ((htmlaway == NULL) || (*htmlaway == '\0')) | 4818 if ((htmlaway == NULL) || (*htmlaway == '\0')) |
4818 htmlaway = purple_status_type_get_name(status_type); | 4819 htmlaway = purple_status_type_get_name(status_type); |
4819 | 4820 |
4833 aim_srv_setextrainfo(od, FALSE, 0, TRUE, status_text, NULL); | 4834 aim_srv_setextrainfo(od, FALSE, 0, TRUE, status_text, NULL); |
4834 g_free(status_text); | 4835 g_free(status_text); |
4835 } | 4836 } |
4836 | 4837 |
4837 /* Set a proper away message for icq too so that they work for old third party clients */ | 4838 /* Set a proper away message for icq too so that they work for old third party clients */ |
4838 | 4839 linkified = purple_markup_linkify(htmlaway); |
4839 away = purple_prpl_oscar_convert_to_infotext(htmlaway, &awaylen, &away_encoding); | 4840 away = purple_prpl_oscar_convert_to_infotext(linkified, &awaylen, &away_encoding); |
4841 g_free(linkified); | |
4840 | 4842 |
4841 if (awaylen > od->rights.maxawaymsglen) | 4843 if (awaylen > od->rights.maxawaymsglen) |
4842 { | 4844 { |
4843 gchar *errstr; | 4845 gchar *errstr; |
4844 | 4846 |