Mercurial > pidgin
changeset 10933:f43113333717
[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 <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 23 May 2005 19:05:11 +0000 |
parents | 3ad0e7351826 |
children | 185ca25b5c7e |
files | src/protocols/irc/cmds.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)