Mercurial > pidgin
changeset 24308:00420530cc56
escape nick change message
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 26 Oct 2008 21:21:14 +0000 |
parents | 785db7300ef2 |
children | a548c565780f b51732ec65e4 |
files | libpurple/server.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/server.c Sun Oct 26 00:29:27 2008 +0000 +++ b/libpurple/server.c Sun Oct 26 21:21:14 2008 +0000 @@ -261,14 +261,18 @@ conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, b->name, account); if(conv != NULL && alias != NULL && strcmp(alias, who)) { + char *escaped = g_markup_escape_text(who, -1); + char *escaped2 = g_markup_escape_text(alias, -1); char *tmp = g_strdup_printf(_("%s is now known as %s.\n"), - who, alias); + escaped, escaped2); purple_conversation_write(conv, NULL, tmp, PURPLE_MESSAGE_SYSTEM | PURPLE_MESSAGE_NO_LINKIFY, time(NULL)); g_free(tmp); + g_free(escaped2); + g_free(escaped); } } }