pidgin: 9af1b505: escape nick change message

khc at pidgin.im khc at pidgin.im
Sun Oct 26 17:25:28 EDT 2008


-----------------------------------------------------------------
Revision: 9af1b5054f770dc244dcad8b55bdb61c0f3347a4
Ancestor: c4db69fe62c1650d1fb404a8bbb12bf47852f70c
Author: khc at pidgin.im
Date: 2008-10-26T21:21:14
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9af1b5054f770dc244dcad8b55bdb61c0f3347a4

Modified files:
        libpurple/server.c

ChangeLog: 

escape nick change message


-------------- next part --------------
============================================================
--- libpurple/server.c	e74048f20bb650c37a28302ca336d26c6514c34e
+++ libpurple/server.c	188c4b6835c3ab4b275572f008c89581c52fcec5
@@ -261,14 +261,18 @@ serv_got_alias(PurpleConnection *gc, con
 		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);
 		}
 	}
 }


More information about the Commits mailing list