Mercurial > pidgin-twitter
diff pidgin-twitter.h @ 239:e3a24c98772d
added a new feature that strips excessive consecutive new line characters.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 07 Oct 2008 14:51:22 +0900 |
parents | a93a85623a92 |
children | 405f8b880142 |
line wrap: on
line diff
--- a/pidgin-twitter.h Mon Sep 29 22:51:25 2008 +0900 +++ b/pidgin-twitter.h Tue Oct 07 14:51:22 2008 +0900 @@ -36,7 +36,8 @@ IMAGE_WASSR, IMAGE_IDENTICA, TAG_IDENTICA, - SIZE_128_WASSR + SIZE_128_WASSR, + EXCESS_LF }; /* service id */ @@ -124,6 +125,7 @@ #define OPT_FILTER_TWITTER OPT_PIDGINTWITTER "/filter_twitter" #define OPT_FILTER_WASSR OPT_PIDGINTWITTER "/filter_wassr" #define OPT_FILTER_IDENTICA OPT_PIDGINTWITTER "/filter_identica" +#define OPT_STRIP_EXCESS_LF OPT_PIDGINTWITTER "/strip_excess_lf" #ifdef _WIN32 #define OPT_PIDGIN_BLINK_IM PIDGIN_PREFS_ROOT "/win32/blink_im" @@ -153,9 +155,10 @@ #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) " #define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" +#define P_SIZE_128_WASSR "\\.128\\." #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>" #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" -#define P_SIZE_128_WASSR "\\.128\\." +#define P_EXCESS_LF "([\\r|\\n]{3,})" /* twitter API specific macros */ #define TWITTER_BASE_URL "http://twitter.com"