Mercurial > pidgin-twitter
diff pidgin-twitter.c @ 229:29c741b1b921
supports identi.ca's quirky tag notation.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 27 Sep 2008 15:14:30 +0900 |
parents | 666629903fa9 |
children | a93a85623a92 |
line wrap: on
line diff
--- a/pidgin-twitter.c Sat Sep 27 01:42:39 2008 +0900 +++ b/pidgin-twitter.c Sat Sep 27 15:14:30 2008 +0900 @@ -954,9 +954,12 @@ } else if(which == TAG_IDENTICA && service == identica_service) { gchar *match = g_match_info_fetch(match_info, 1); + gchar *link = g_ascii_strdown(match, -1); + purple_str_strip_char(link, '_'); const gchar *format = TAG_FORMAT_IDENTICA; - g_snprintf(sub, SUBST_BUF_SIZE, format, match, match); + g_snprintf(sub, SUBST_BUF_SIZE, format, link, match); g_free(match); + g_free(link); } g_string_append(result, sub);