Mercurial > pidgin-twitter
comparison main.c @ 299:d68ed289ef69
#tag should be interpreted as search tag only if it appears in the beginning of line or it is separated by white space.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 25 Apr 2009 22:27:13 +0900 |
parents | e07f28bed8a8 |
children | 42cdddf0f747 |
comparison
equal
deleted
inserted
replaced
298:fd0948c7078e | 299:d68ed289ef69 |
---|---|
215 | 215 |
216 g_free(match1); | 216 g_free(match1); |
217 g_free(match2); | 217 g_free(match2); |
218 } | 218 } |
219 else if(which == TAG_TWITTER && service == twitter_service) { | 219 else if(which == TAG_TWITTER && service == twitter_service) { |
220 gchar *match = g_match_info_fetch(match_info, 1); | 220 gchar *match1 = g_match_info_fetch(match_info, 1); /* white space */ |
221 gchar *link = g_ascii_strdown(match, -1); | 221 gchar *match2 = g_match_info_fetch(match_info, 2); /* search tag */ |
222 g_snprintf(sub, SUBST_BUF_SIZE, TAG_FORMAT_TWITTER, link, match); | 222 const gchar *format = TAG_FORMAT_TWITTER; |
223 g_free(match); | 223 g_snprintf(sub, SUBST_BUF_SIZE, format, match1 ? match1: "", match2, match2); |
224 g_free(link); | 224 g_free(match1); |
225 g_free(match2); | |
225 } | 226 } |
226 else if(which == TAG_IDENTICA && service == identica_service) { | 227 else if(which == TAG_IDENTICA && service == identica_service) { |
227 gchar *match = g_match_info_fetch(match_info, 1); | 228 gchar *match = g_match_info_fetch(match_info, 1); |
228 gchar *link = g_ascii_strdown(match, -1); | 229 gchar *link = g_ascii_strdown(match, -1); |
229 purple_str_strip_char(link, '-'); | 230 purple_str_strip_char(link, '-'); |
1284 0, /**< flags */ | 1285 0, /**< flags */ |
1285 NULL, /**< deps */ | 1286 NULL, /**< deps */ |
1286 PURPLE_PRIORITY_DEFAULT, /**< priority */ | 1287 PURPLE_PRIORITY_DEFAULT, /**< priority */ |
1287 PLUGIN_ID, /**< id */ | 1288 PLUGIN_ID, /**< id */ |
1288 "Pidgin-Twitter", /**< name */ | 1289 "Pidgin-Twitter", /**< name */ |
1289 "0.8.3", /**< version */ | 1290 "0.8.4d1", /**< version */ |
1290 "provides useful features for twitter", /** summary */ | 1291 "provides useful features for twitter", /** summary */ |
1291 "provides useful features for twitter", /** desc */ | 1292 "provides useful features for twitter", /** desc */ |
1292 "Yoshiki Yazawa, mikanbako, \nKonosuke Watanabe, IWATA Ray, \nmojin, umq, \nthe pidging-twitter team", /**< author */ | 1293 "Yoshiki Yazawa, mikanbako, \nKonosuke Watanabe, IWATA Ray, \nmojin, umq, \nthe pidging-twitter team", /**< author */ |
1293 "http://www.honeyplanet.jp/pidgin-twitter/", /**< homepage */ | 1294 "http://www.honeyplanet.jp/pidgin-twitter/", /**< homepage */ |
1294 load_plugin, /**< load */ | 1295 load_plugin, /**< load */ |