# HG changeset patch # User Rob Flynn # Date 991430879 0 # Node ID 6a9109c790340090c7d8c2fbe25ffaa7de25bb22 # Parent f0b54f592486eaf7bf7465390114d5249b8d3298 [gaim-migrate @ 1947] Laddy Daaaaaaaaa. Thanks faceprint :) committer: Tailor Script diff -r f0b54f592486 -r 6a9109c79034 ChangeLog --- 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 diff -r f0b54f592486 -r 6a9109c79034 src/server.c --- 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)