diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-19 20:46:43 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-19 20:46:43 +0100 |
commit | 0b3ffb13172c211eed561288d0fd04d76506bb02 (patch) | |
tree | 61b10a04029a860cdea017b6a31c479c27f06491 /protocols/twitter/twitter_lib.c | |
parent | 2334048eaa9ab26fcdab781dbfb1bacb1c01ba8d (diff) |
Setting the HTML flag on a connection has a nasty side effect of escaping
a lot of "special" characters, and these HTML entities are not counted as
one character. :-(
So just strip HTML of incoming stuff and don't do anything with what goes
out. It's not required.
The story may actually be more complicated this, let's find out.
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r-- | protocols/twitter/twitter_lib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c index ee6e39fe..3becc67e 100644 --- a/protocols/twitter/twitter_lib.c +++ b/protocols/twitter/twitter_lib.c @@ -433,6 +433,8 @@ static void twitter_groupchat(struct im_connection *ic, GSList *list) status = l->data; twitter_add_buddy(ic, status->user->screen_name, status->user->name); + strip_html(status->text); + // Say it! if (g_strcasecmp(td->user, status->user->screen_name) == 0) imcb_chat_log (gc, "Your Tweet: %s", status->text); @@ -470,6 +472,7 @@ static void twitter_private_message_chat(struct im_connection *ic, GSList *list) status = l->data; + strip_html( status->text ); if( mode_one ) text = g_strdup_printf( "\002<\002%s\002>\002 %s", status->user->screen_name, status->text ); |