# HG changeset patch # User Ka-Hing Cheung # Date 1225056074 0 # Node ID 00420530cc569db4a714b3e99be7f07778b4f8e4 # Parent 785db7300ef2ed252e3e8900dc94d02f7acfdfea escape nick change message diff -r 785db7300ef2 -r 00420530cc56 libpurple/server.c --- 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); } } }