# HG changeset patch # User Yoshiki Yazawa # Date 1222658729 -32400 # Node ID a93a85623a920dacd785c1ec49668f9616bcbf48 # Parent a73dae7d8d78100e2989794f6bf61608c1806ec8 identi.ca tag requires '-' to be stripped as well. diff -r a73dae7d8d78 -r a93a85623a92 pidgin-twitter.c --- a/pidgin-twitter.c Sat Sep 27 18:47:59 2008 +0900 +++ b/pidgin-twitter.c Mon Sep 29 12:25:29 2008 +0900 @@ -955,6 +955,7 @@ 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, '-'); purple_str_strip_char(link, '_'); const gchar *format = TAG_FORMAT_IDENTICA; g_snprintf(sub, SUBST_BUF_SIZE, format, link, match); diff -r a73dae7d8d78 -r a93a85623a92 pidgin-twitter.h --- a/pidgin-twitter.h Sat Sep 27 18:47:59 2008 +0900 +++ b/pidgin-twitter.h Mon Sep 29 12:25:29 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 */