# HG changeset patch # User Stu Tomlinson # Date 1116875111 0 # Node ID f4311333371709ba06c11729ae1f6fc25916303f # Parent 3ad0e7351826675379eefde4d06513bbd28f56dc [gaim-migrate @ 12716] Fix bug 1207236 - Angle brackets invisible to self in emotes, we weren't escaping our own /me's before writing them to the conversation committer: Tailor Script diff -r 3ad0e7351826 -r f43113333717 src/protocols/irc/cmds.c --- a/src/protocols/irc/cmds.c Thu May 19 01:03:45 2005 +0000 +++ b/src/protocols/irc/cmds.c Mon May 23 19:05:11 2005 +0000 @@ -74,7 +74,7 @@ int irc_cmd_ctcp_action(struct irc_conn *irc, const char *cmd, const char *target, const char **args) { GaimConnection *gc = gaim_account_get_connection(irc->account); - char *action, *dst, **newargs; + char *action, *escaped, *dst, **newargs; const char *src; GaimConversation *convo; @@ -112,7 +112,9 @@ convo = gaim_find_conversation_with_account(GAIM_CONV_ANY, target, irc->account); if (convo) { - action = g_strdup_printf("/me %s", args[0]); + escaped = g_markup_escape_text(args[0], -1); + action = g_strdup_printf("/me %s", escaped); + g_free(escaped); if (action[strlen(action) - 1] == '\n') action[strlen(action) - 1] = '\0'; if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT)