# HG changeset patch # User Yoshiki Yazawa # Date 1222496070 -32400 # Node ID 29c741b1b921cb1c41565715ba2015a9095577b2 # Parent 666629903fa9ad78c789178a3286f5cabe9be578 supports identi.ca's quirky tag notation. diff -r 666629903fa9 -r 29c741b1b921 pidgin-twitter.c --- 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); diff -r 666629903fa9 -r 29c741b1b921 pidgin-twitter.h --- a/pidgin-twitter.h Sat Sep 27 01:42:39 2008 +0900 +++ b/pidgin-twitter.h Sat Sep 27 15:14:30 2008 +0900 @@ -154,7 +154,7 @@ #define P_IMAGE_TWITTER "" #define P_IMAGE_WASSR "
" #define P_IMAGE_IDENTICA "\"[A-Za-z0-0_]+\"/" -#define P_TAG_IDENTICA "#([A-Za-z0-9]+)" +#define P_TAG_IDENTICA "#([A-Za-z0-9_]+)" #define P_SIZE_128_WASSR "\\.128\\." /* twitter API specific macros */