Mercurial > pidgin
changeset 1937:6a9109c79034
[gaim-migrate @ 1947]
Laddy Daaaaaaaaa.
Thanks faceprint :)
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 01 Jun 2001 21:27:59 +0000 |
parents | f0b54f592486 |
children | c9db54d8d8dc |
files | ChangeLog src/server.c |
diffstat | 2 files changed, 25 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Jun 01 18:39:51 2001 +0000 +++ b/ChangeLog Fri Jun 01 21:27:59 2001 +0000 @@ -4,6 +4,8 @@ * Can view/set chat topic in Jabber (thanks faceprint) * The napster plugin no longer segfaults on invalid names and/or passwords. + * HTML is properly stripped from away messages in protocols that + do not use HTML. (thanks, faceprint) version 0.11.0-pre12 (05/29/2001): * Fixed a funny bug with auto responses when queued messages
--- a/src/server.c Fri Jun 01 18:39:51 2001 +0000 +++ b/src/server.c Fri Jun 01 21:27:59 2001 +0000 @@ -163,11 +163,30 @@ void serv_set_away(struct gaim_connection *gc, char *state, char *message) { - if (gc && gc->prpl && gc->prpl->set_away) { - (*gc->prpl->set_away)(gc, state, message); - plugin_event(event_away, gc, state, message, 0); + if (gc && gc->prpl && gc->prpl->set_away) + { + char *buf=NULL; + if(message) + { + buf = g_malloc(strlen(message)+1); + if(gc->prpl->options & OPT_PROTO_HTML) + { + strncpy(buf, message, strlen(message)+1); + } + else + { + strncpy_nohtml(buf, message, strlen(message)+1); + } } - system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); + + (*gc->prpl->set_away)(gc, state, buf); + plugin_event(event_away, gc, state, buf, 0); + + if(buf) + g_free(buf); +} + +system_log(log_away, gc, NULL, OPT_LOG_BUDDY_AWAY | OPT_LOG_MY_SIGNON); } void serv_set_away_all(char *message)