gaim/gaim

7d23ed2ba9db
Parents e5465aba0b1a
Children e929f5d71559
Fix bug 1207236 - Angle brackets invisible to self in emotes, we weren't
escaping our own /me's before writing them to the conversation
--- a/src/protocols/irc/cmds.c Fri May 20 21:15:55 2005 -0400
+++ b/src/protocols/irc/cmds.c Mon May 23 15:04:48 2005 -0400
@@ -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(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)