Mercurial > pidgin
changeset 12344:719c5b4668b9
[gaim-migrate @ 14648]
Strip HTML before setting the oscar available message when signing on
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 05 Dec 2005 04:54:28 +0000 |
parents | a02f877637a6 |
children | f6fa5d742c76 |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Mon Dec 05 04:32:32 2005 +0000 +++ b/src/protocols/oscar/oscar.c Mon Dec 05 04:54:28 2005 +0000 @@ -5846,6 +5846,7 @@ GaimAccount *account; GaimStatus *status; const char *message; + char *tmp; va_list ap; fu16_t maxpermits, maxdenies; @@ -5876,7 +5877,9 @@ message = gaim_status_get_attr_string(status, "message"); else message = NULL; - aim_srv_setavailmsg(sess, message); + tmp = gaim_markup_strip_html(message); + aim_srv_setavailmsg(sess, tmp); + free(tmp); aim_srv_setidle(sess, 0);