Mercurial > pidgin.yaz
diff libpurple/server.c @ 24250:00420530cc56
escape nick change message
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 26 Oct 2008 21:21:14 +0000 |
parents | 49850f7ca393 |
children | 18858e645788 5ebfa814b9e8 bcad7dc4b453 b5e2be33a17a |
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); } } }